/* ===========================
   RIGHT SIDEBAR
   =========================== */

.rightbar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 450px;
  padding: 20px 16px;
  background: transparent;
  z-index: 450;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rightbar__card {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(17,24,39,.06);
  border: 1px solid rgba(17,24,39,.06);
  overflow: hidden;
}

/* ===========================
   SPOTLIGHT
   =========================== */

.spotlight { padding: 14px 14px 12px; }

.spotlight__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.spotlight__title{
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.spotlight__title-icon{
  width: 26px;
  height: 26px;
  display: block;
  background-color: maroon;

  -webkit-mask-image: url('/assets/img/icons/spotlight.svg');
  mask-image: url('/assets/img/icons/spotlight.svg');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;

  opacity: 0.95;
}

.spotlight__controls { display: inline-flex; gap: 8px; }

.spotlight__arrow {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(17,24,39,.10);
  background: #ffffff;
  color: #111827;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
  padding: 0;
}

.spotlight__arrow:hover,
.spotlight__arrow:focus-visible {
  background: #f3f4f6;
  border-color: rgba(17,24,39,.16);
}
.spotlight__arrow:active { transform: scale(0.96); }
.spotlight__arrow span { font-size: 20px; line-height: 1; transform: translateY(-1px); }

/* ===========================
   BODY + STRETCHED LINK PATTERN
   =========================== */

.spotlight__body {
  position: relative;
  border-radius: 12px;
  padding: 10px;
  transition: background .15s ease;
}

.spotlight__body:hover,
.spotlight__body:focus-within { background: #f9fafb; }

.spotlight__ranchlink {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  z-index: 1;
}

.spotlight__content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: none; /* click passes to the overlay ranch link */
}

/* Avatar */
.spotlight__avatar {
  width: 100px;
  height: 100px;
  border-radius: 18px;
  background: #f3f4f6;
  box-shadow: 0 2px 8px rgba(17,24,39,.08);
  overflow: hidden;
  flex: 0 0 auto;
}

.spotlight__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Meta */
.spotlight__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Text */
.spotlight__name {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotlight__location {
  font-size: 13px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Excerpt line with inline CTA */
.spotlight__excerpt {
  pointer-events: auto; /* allow selecting/copying and clicking CTA */
  margin: 2px 0 0;
  font-size: 13px;
  color: #374151;
  line-height: 1.35;
  position: relative;
  z-index: 3;
}

/* Keep excerpt text inline */
.spotlight__excerptText { display: inline; }

/* Inline CTA that visually reads like a small button */
.spotlight__ctaInline {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-left: 8px;
  padding: 0px 8px;      /* small so it fits inline */
  border-radius: 999px;  /* pill */
  background: rgba(128,0,0,0.10);
  color: #800000;

  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;     /* same line height so it sits on the same row */
  text-decoration: none;

  border: 1px solid rgba(128,0,0,0.18);
  transition: background .15s ease, transform .08s ease;
}

.spotlight__ctaInline:hover,
.spotlight__ctaInline:focus-visible {
  background: rgba(128,0,0,0.16);
  text-decoration: none;
}

.spotlight__ctaInline:active { transform: scale(0.98); }

/* Focus ring consistency */
.spotlight__arrow:focus-visible,
.spotlight__ranchlink:focus-visible,
.spotlight__ctaInline:focus-visible {
  outline: 2px solid rgba(128,0,0,0.25);
  outline-offset: 2px;
}

/* Responsive */
@media (max-width: 1100px) {
  .rightbar { display: none; }
}