/* ORIVON — identity "Quiet observatory" (2026-10-12). Integrated edition of collective-20261004.css, used ONLY by index.html, sightline.html and collective/index.html.
   Every page outside that scope keeps loading the collective-20261004.css edition unchanged. Landing-only layout reservations ([data-orv-*-slot]:empty) keep the page stable while the script fills the slots.
   No override layer: the approved prototype rules were folded into the original rules of this sheet. */
/* ORIVON Astrographers Collective — component styles.
   Loaded in addition to css/styles-20260925.css on collective/*.html pages
   only, so the shared site stylesheet (used by all 86 other pages) never
   has to be touched or cache-bust-renamed for this feature. Reuses the
   existing design tokens (--space-black, --aurora-cyan, --font-display, …)
   defined in :root there. */

.orv-noindex-badge { display: none; }

/* .site-header is position:fixed (see styles-20260925.css), so this subnav
   — the first normal-flow element on every collective page — needs its own
   offset to clear it; otherwise the fixed header paints over it. */
.orv-subnav { border-bottom: 1px solid var(--line); margin-top: 82px; }
.orv-subnav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding: 0.9rem 0; flex-wrap: wrap; }
.orv-subnav-links { display: flex; gap: clamp(1rem, 3vw, 1.8rem); flex-wrap: wrap; align-items: center; }
.orv-subnav-links a { font-size: 0.86rem; color: var(--silver); text-decoration: none; padding: 0.4rem 0; }
.orv-subnav-links a.is-active {
  color: var(--orv-ivory);
  box-shadow: inset 0 -1px 0 var(--orv-ivory);
}
.orv-subnav-links a:hover { color: var(--polar-white); }
.orv-subnav-actions { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; row-gap: 0.6rem; min-width: 0; }
.orv-subnav-submit { padding: 0.5rem 1.1rem; font-size: 0.82rem; white-space: nowrap; }
.orv-subnav-submit[aria-current="page"] { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.45); }
.orv-subnav-divider { width: 1px; height: 20px; background: var(--line-strong); display: inline-block; flex: none; }
/* min-width:0 on every level here is load-bearing: a flex item's default
   min-width is auto (= its content's natural width), which silently defeats
   text-overflow:ellipsis and lets a long value — the signed-in user's raw
   email, unbounded — push this row past the subnav's right edge on a phone
   screen instead of wrapping or truncating. That's the exact overflow
   reported on mobile. */
.orv-subnav .orv-auth-status { font-size: 0.82rem; color: var(--silver-2); display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; min-width: 0; max-width: 100%; }
.orv-subnav .orv-auth-status a, .orv-subnav .orv-auth-status button { color: var(--polar-white-dim); background: none; border: none; cursor: pointer; font-size: 0.82rem; padding: 0; flex: none; }
.orv-subnav .orv-auth-status a:hover, .orv-subnav .orv-auth-status button:hover { color: var(--aurora-cyan); }
.orv-subnav .orv-auth-status span {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  min-width: 0; max-width: 220px;
}
.orv-subnav .orv-auth-status .orv-subnav-signin {
  padding: 0.45rem 1.1rem;
  font-size: 0.78rem;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--polar-white);
  border-radius: var(--orv-radius);
}
.orv-subnav .orv-auth-status .orv-subnav-signin:hover { transform: none; border-color: var(--aurora-cyan); color: var(--polar-white); }
@media (max-width: 640px) {
  .orv-subnav-divider { display: none; }
  .orv-subnav .wrap { gap: 0.8rem 1.2rem; }
  .orv-subnav .orv-auth-status span { max-width: 42vw; }
}

.orv-hero {
  padding: clamp(6rem, 14vw, 10rem) 0 clamp(3rem, 8vw, 5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.orv-hero-kicker {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--orv-silver);
  margin-bottom: 1.1rem;
  font-weight: 500;
}
.orv-hero h1 { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 18ch; margin: 0 auto 1.2rem; }
.orv-hero p { color: var(--silver); font-size: 1.05rem; max-width: 52ch; margin: 0 auto 2rem; }
.orv-hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Split editorial hero (Collective landing only) — capped height, real
   Collective photography as the visual half instead of an oversized
   centered text block. */
.orv-hero-split { padding: clamp(5.5rem, 9vw, 6.5rem) 0 clamp(2.2rem, 4vw, 3rem); text-align: left; }
.orv-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 900px) {
  .orv-hero-grid { grid-template-columns: 1fr; gap: 2.2rem; }
}
.orv-hero-copy .orv-hero-kicker { margin-bottom: 1rem; }
.orv-hero-copy h1 { margin: 0 0 1rem; max-width: none; }
.orv-hero-copy p { margin: 0 0 1.6rem; max-width: 46ch; }
.orv-hero-split .orv-hero-actions { justify-content: flex-start; margin-bottom: 1.3rem; }
.orv-hero-trust { color: var(--silver-2); font-size: 0.8rem; letter-spacing: 0.02em; margin: 0; }

.orv-hero-visual { position: relative; }
.orv-hero-photo-card {
  position: relative;
  display: block;
  border-radius: var(--orv-radius-card);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: none;
  aspect-ratio: 4/3;
  background: var(--midnight-2);
  border-color: var(--orv-hair-strong);
}
.orv-hero-photo-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.orv-hero-photo-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1rem 1.2rem 0.9rem;
  background: linear-gradient(180deg, transparent, rgba(5,7,12,0.88) 55%, rgba(5,7,12,0.95));
  color: var(--polar-white);
}
.orv-hero-photo-tag {
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--orv-silver);
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
}
.orv-hero-photo-title { font-size: 0.98rem; font-weight: 600; margin: 0 0 0.35rem; }
.orv-hero-photo-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--polar-white-dim);
  text-decoration: none;
  position: relative;
  z-index: 2;
  min-height: 44px;
}
.orv-hero-photo-author:hover { color: var(--aurora-cyan); }
.orv-hero-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  aspect-ratio: 4/3;
  border-radius: var(--orv-radius-card);
  border: 1px dashed var(--line-strong);
  background: var(--orv-raise);
  color: var(--silver);
  padding: 2rem;
}

/* Value strip */
.orv-value-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.orv-value-strip-inner {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 0.6rem 1.4rem; padding: 1.1rem 0; font-size: 0.78rem; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--silver-2);
}
.orv-value-sep { color: var(--line-strong); }
@media (max-width: 560px) { .orv-value-strip-inner { gap: 0.5rem 0.9rem; font-size: 0.7rem; } }

/* Community stats band — occupies the same compact strip the static
   tagline copy used to, so real numbers don't add any extra section or
   vertical space to the page. */
.orv-stats-inner {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline;
  gap: clamp(1.6rem, 6vw, 4rem); padding: 1.2rem 0;
}
.orv-stat {
  text-align: center;
  border-radius: var(--orv-radius-card);
}
.orv-stat-value { display: block; font-family: var(--font-display); font-size: clamp(1.25rem, 2.6vw, 1.7rem); color: var(--polar-white); line-height: 1.2; }
.orv-stat-label { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--silver-2); }
.orv-stat-skeleton { display: inline-block; width: 2.6rem; height: 1.35rem; border-radius: 4px; background: var(--midnight-3); animation: orv-stat-pulse 1.4s ease-in-out infinite; }
@keyframes orv-stat-pulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 0.9; } }
@media (prefers-reduced-motion: reduce) { .orv-stat-skeleton { animation: none; opacity: 0.7; } }

/* Adaptive Recent Photography layouts */
.orv-recent-feature {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem); align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--glass-bg);
}
@media (max-width: 760px) { .orv-recent-feature { grid-template-columns: 1fr; } }
.orv-recent-feature-media { aspect-ratio: 4/3; overflow: hidden; background: var(--midnight-2); }
.orv-recent-feature-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.orv-recent-feature-body { padding: clamp(1.4rem, 3vw, 2.2rem) clamp(1.4rem, 3vw, 2.2rem) clamp(1.4rem, 3vw, 2.2rem) 0; }
@media (max-width: 760px) { .orv-recent-feature-body { padding: 0 1.4rem 1.6rem; } }
.orv-recent-feature-body h3 { font-family: var(--font-display); font-size: clamp(1.2rem, 2.4vw, 1.6rem); margin: 0 0 0.5rem; }
.orv-recent-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
@media (max-width: 640px) { .orv-recent-duo { grid-template-columns: 1fr; } }

/* Recent Photography — editorial mosaic (3, 4 or 5 photos). Each count gets
   its own hand-built grid-template-areas so the composition always
   tessellates with zero leftover gaps; 1-2 photos instead reuse the
   existing .orv-recent-feature / .orv-recent-duo layouts above, which
   already handle those counts well. Falls back to a plain wrapping grid on
   narrower screens rather than trying to preserve the asymmetric shape. */
/* Explicit total height (not left to intrinsic image size) is what keeps
   this mosaic to a sane, single-screen-ish footprint regardless of a
   portrait primary photo's natural proportions — grid rows are plain 1fr
   splits of that fixed height, not minmax(…, 1fr) against an undefined
   container height, which is what previously let a tall image balloon the
   whole section past the viewport. */
.orv-recent-editorial { display: grid; gap: 1rem; height: clamp(420px, 40vw, 600px); }
.orv-recent-editorial[data-count="5"] {
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  grid-template-areas: "a a b c" "a a d e";
}
.orv-recent-editorial[data-count="4"] {
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  grid-template-areas: "a a b b" "a a c d";
}
.orv-recent-editorial[data-count="3"] {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  grid-template-areas: "a a b" "a a c";
}
.orv-recent-editorial > :nth-child(1) { grid-area: a; }
.orv-recent-editorial > :nth-child(2) { grid-area: b; }
.orv-recent-editorial > :nth-child(3) { grid-area: c; }
.orv-recent-editorial > :nth-child(4) { grid-area: d; }
.orv-recent-editorial > :nth-child(5) { grid-area: e; }
.orv-recent-editorial .orv-gallery-card { height: 100%; min-height: 0; }
.orv-recent-editorial .orv-gallery-card-media { flex: 1 1 auto; aspect-ratio: auto; min-height: 0; }

/* The primary/lead card: full photo via object-fit:contain (never cropped)
   with the same blurred-backdrop treatment as the carousel filling
   whatever empty space its fixed cell leaves around a portrait or square
   image — same reasoning as the carousel fix above. */
.orv-gallery-card-media-contain { position: relative; background: var(--midnight-2); }
.orv-gallery-card-backdrop {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: blur(28px) brightness(0.5) saturate(1.15);
  transform: scale(1.15);
  z-index: 0;
}
.orv-gallery-card-backdrop::after { content: ""; position: absolute; inset: 0; background: rgba(5, 7, 12, 0.32); }
a.orv-gallery-card .orv-gallery-card-media-contain img {
  position: relative; z-index: 1;
  width: 100%; height: 100%; object-fit: contain;
  box-shadow: 0 12px 36px -10px rgba(0, 0, 0, 0.55);
}

/* The editorial mosaic's cards are a single <a> (the whole card must be
   clickable), unlike the plain gallery grid's div+nested-link cards — reset
   link color/underline here, scoped by the tag+class combination so
   gallery.html's own (non-link) .orv-gallery-card is never affected. */
a.orv-gallery-card { color: var(--polar-white-dim); text-decoration: none; transition: border-color var(--dur-fast) var(--ease-premium), transform var(--dur-fast) var(--ease-premium); }
a.orv-gallery-card:hover {
  border-color: var(--orv-silver-2);
  transform: none;
}
a.orv-gallery-card:hover .orv-gallery-card-media img {
  transform: none;
}
a.orv-gallery-card:focus-visible { outline: 2px solid var(--aurora-cyan); outline-offset: 2px; }
a.orv-gallery-card h3 { color: var(--polar-white); }
a.orv-gallery-card .orv-gallery-card-meta { color: var(--silver); }
a.orv-gallery-card .orv-card-author-row { color: var(--silver); }
@media (prefers-reduced-motion: reduce) {
  a.orv-gallery-card, a.orv-gallery-card .orv-gallery-card-media img { transition: none !important; }
}
@media (max-width: 900px) {
  .orv-recent-editorial { height: auto; }
  .orv-recent-editorial[data-count] {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
    grid-template-areas: none;
  }
  .orv-recent-editorial[data-count] > * { grid-area: auto; }
  .orv-recent-editorial .orv-gallery-card-media,
  .orv-recent-editorial .orv-gallery-card-media-contain { aspect-ratio: 4/3; }
  /* No special lead-card treatment at tablet/mobile — every card, including
     the former primary, becomes a plain, consistently-sized cover thumbnail
     like the rest of the site's gallery cards. */
  a.orv-gallery-card .orv-gallery-card-media-contain img { object-fit: cover; box-shadow: none; }
  .orv-gallery-card-backdrop { display: none; }
}
@media (max-width: 640px) {
  .orv-recent-editorial[data-count] { grid-template-columns: 1fr; }
}

/* Photo of the Month / community-preview carousel */
.orv-carousel-preview-tag {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--orv-radius);
  padding: 0.35rem 0.85rem;
  margin-bottom: 1.1rem;
}
.orv-carousel-stage {
  position: relative;
  height: clamp(300px, 42vw, 460px);
  border-radius: var(--orv-radius-card);
  overflow: hidden;
  background: linear-gradient(160deg, var(--midnight-2), var(--midnight));
  border: 1px solid var(--line);
}
[data-orv-carousel-single] .orv-carousel-stage { height: clamp(320px, 46vw, 500px); }
.orv-carousel-stage-inner { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transition: opacity 0.2s ease; }
.orv-carousel-stage-inner.orv-carousel-fade-out { opacity: 0; }
/* Decorative backdrop: the same photo, enlarged, blurred and darkened, so a
   narrow portrait image never floats in a mostly-empty wide stage — never
   competes with the sharp foreground image, never read by a screen reader
   (aria-hidden, and it's a background-image on a plain div, not an <img>). */
.orv-carousel-backdrop {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: blur(36px) brightness(0.55) saturate(1.15);
  transform: scale(1.15);
  z-index: 0;
}
.orv-carousel-backdrop::after {
  content: ""; position: absolute; inset: 0; background: rgba(5, 7, 12, 0.3);
}
.orv-carousel-frame {
  /* No explicit z-index: the backdrop div is earlier in the DOM (both are
     z-index:auto), so it already paints behind this frame by source order
     alone. An explicit positive z-index here previously escaped this
     non-stacking-context wrapper and painted the frame above the
     prev/next/play-pause buttons too (they're later siblings with
     z-index:auto), swallowing clicks meant for those controls. */
  position: relative;
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 1.2rem;
}
.orv-carousel-frame img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 55px -15px rgba(0, 0, 0, 0.65);
}
.orv-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(5, 7, 12, 0.65);
  color: var(--polar-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-premium);
  min-width: 44px;
  min-height: 44px;
}
.orv-carousel-arrow svg { width: 18px; height: 18px; }
.orv-carousel-prev { left: 0.8rem; }
.orv-carousel-next { right: 0.8rem; }
.orv-carousel-arrow:hover { border-color: var(--aurora-cyan); }
.orv-carousel-playpause {
  position: absolute;
  bottom: 0.8rem;
  right: 0.8rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(5, 7, 12, 0.65);
  color: var(--polar-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
}
.orv-carousel-playpause svg { width: 14px; height: 14px; }
.orv-carousel-playpause:hover { border-color: var(--aurora-cyan); }
.orv-carousel-caption { margin-top: 1.2rem; text-align: center; }
.orv-carousel-caption h3 { font-family: var(--font-display); font-size: clamp(1.1rem, 2vw, 1.4rem); margin: 0 0 0.5rem; }
.orv-carousel-caption h3 a { color: var(--polar-white); text-decoration: none; }
.orv-carousel-caption h3 a:hover { color: var(--aurora-cyan); }
.orv-carousel-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--silver);
  text-decoration: none;
  font-size: 0.86rem;
  min-height: 44px;
}
.orv-carousel-author:hover { color: var(--aurora-cyan); }
.orv-carousel-thumbs { display: flex; gap: 0.6rem; overflow-x: auto; margin-top: 1.3rem; padding: 0.2rem 0.1rem 0.4rem; }
.orv-carousel-thumb {
  flex: none; width: 64px; height: 64px; border-radius: var(--radius-sm); overflow: hidden;
  border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--midnight-2);
  opacity: 0.55; transition: opacity var(--dur-fast) var(--ease-premium), border-color var(--dur-fast) var(--ease-premium);
}
.orv-carousel-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.orv-carousel-thumb:hover { opacity: 0.85; }
.orv-carousel-thumb.is-active { opacity: 1; border-color: var(--aurora-cyan); }
@media (max-width: 640px) {
  .orv-carousel-stage { height: clamp(240px, 70vw, 340px); }
  .orv-carousel-arrow {
    width: 44px;
    height: 44px;
  }
  .orv-carousel-thumb { width: 52px; height: 52px; }
}

/* Avatar monogram fallback — never the generic gray silhouette again.
   .orv-avatar-wrap owns the circular mask (overflow:hidden + border-radius)
   and any border/shadow; .orv-monogram is a plain, unbordered, unpadded
   fill that slightly overscans the wrapper's edge so mask antialiasing can
   never expose a seam. See avatarOrMonogramHTML() for why this is two
   elements instead of one. */
.orv-avatar-wrap { position: relative; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 50%; flex: none; }
.orv-avatar-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.orv-monogram {
  position: absolute; inset: -1px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-family: var(--font-display); font-weight: 600; color: var(--polar-white);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  border: none; outline: none; box-shadow: none; padding: 0; margin: 0;
}
.orv-monogram::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.22), transparent 55%);
}
.orv-avatar-wrap.orv-avatar-sm { width: 22px; height: 22px; }
.orv-avatar-wrap.orv-avatar-sm .orv-monogram { font-size: 0.68rem; }
/* An author-stylesheet display value (flex, above) always wins over the
   browser's default [hidden]{display:none} regardless of selector
   specificity — without this override, the monogram meant as a hidden
   fallback next to a successfully-loaded <img> would show anyway. */
.orv-monogram[hidden] { display: none; }

/* Featured Astrographers */
.orv-astrographer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.1rem; }
.orv-astrographer-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.7rem;
  padding: 1.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--orv-radius-card);
  background: var(--glass-bg);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--dur-fast) var(--ease-premium), transform var(--dur-fast) var(--ease-premium);
}
.orv-astrographer-card:hover {
  border-color: var(--orv-silver-2);
  transform: none;
}
.orv-astrographer-card:focus-visible { outline: 2px solid var(--aurora-cyan); outline-offset: 2px; }
.orv-avatar-wrap.orv-astrographer-avatar {
  width: 72px; height: 72px;
  border: 1px solid var(--glass-border); box-shadow: var(--shadow-soft);
}
.orv-avatar-wrap.orv-astrographer-avatar .orv-monogram { font-size: 1.6rem; }
.orv-astrographer-name { font-size: 0.98rem; color: var(--polar-white); margin: 0; }
.orv-astrographer-region { font-size: 0.8rem; color: var(--silver); margin: 0; }

.orv-section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.orv-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.orv-section-head h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0; }
.orv-section-head p { color: var(--silver); margin: 0.4rem 0 0; }

/* Photo of the Month award block, reused on Collective landing, profile
   award cards, homepage widget and the POTM archive. */
.orv-potm-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--glass-bg);
}
@media (max-width: 760px) { .orv-potm-card { grid-template-columns: 1fr; } }
.orv-potm-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--midnight-2); }
.orv-potm-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.orv-potm-body { padding: clamp(1.6rem, 3vw, 2.4rem); display: flex; flex-direction: column; justify-content: center; }
.orv-potm-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orv-gold);
  margin-bottom: 0.8rem;
}
.orv-potm-body h3 { font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.9rem); margin: 0 0 0.5rem; }
.orv-potm-author { color: var(--silver); margin: 0 0 1rem; }
.orv-potm-author a { color: var(--polar-white); }
.orv-potm-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 0.6rem; }

.orv-award-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.2rem; }
.orv-award-card {
  border: 1px solid var(--line);
  border-radius: var(--orv-radius-card);
  overflow: hidden;
  background: var(--glass-bg);
  text-decoration: none;
  color: inherit;
  display: block;
}
.orv-award-card:hover {
  border-color: var(--orv-silver-2);
  transform: none;
  transition: transform var(--dur-fast) var(--ease-premium);
}
.orv-award-thumb { aspect-ratio: 4/3; overflow: hidden; background: var(--midnight-2); }
.orv-award-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.orv-award-info { padding: 0.9rem 1rem 1.1rem; }
.orv-award-info .orv-award-label {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orv-gold);
  display: block;
  margin-bottom: 0.35rem;
}
.orv-award-info h4 { font-size: 0.98rem; margin: 0; }

/* Gallery */
.orv-gallery-toolbar { display: flex; gap: 0.9rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.8rem; }
.orv-search-input, .orv-select {
  background: var(--midnight-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--polar-white);
  padding: 0.7rem 1rem;
  font-size: 0.92rem;
}
.orv-search-input { flex: 1 1 240px; min-width: 0; }
.orv-search-input:focus, .orv-select:focus, .orv-gallery-card:focus-visible, .orv-card-author-link:focus-visible {
  outline: 2px solid var(--aurora-cyan); outline-offset: 2px;
}

.orv-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.4rem; }
.orv-gallery-card {
  border: 1px solid var(--line);
  border-radius: var(--orv-radius-card);
  overflow: hidden;
  background: var(--glass-bg);
  display: flex;
  flex-direction: column;
}
.orv-gallery-card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--midnight-2); display: block; }
.orv-gallery-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--dur-med) var(--ease-premium); }
.orv-gallery-card-media:hover img { transform: scale(1.05); }
.orv-gallery-card-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; }
.orv-gallery-card-body h3 { font-size: 1rem; margin: 0; }
.orv-gallery-card-body h3 a { color: var(--polar-white); }
.orv-gallery-card-meta { font-size: 0.8rem; color: var(--silver); }
.orv-card-author-row { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.2rem; }
/* Cards in a row are as tall as the tallest one, so the author line is anchored to the bottom of the body: when one title wraps to
   two lines the author names of its neighbours stay level with it instead of sitting higher. */
.orv-gallery-grid .orv-gallery-card-body, .orv-recent-duo .orv-gallery-card-body { flex: 1 1 auto; }
.orv-gallery-grid .orv-card-author-row, .orv-recent-duo .orv-card-author-row { margin-top: auto; }
/* The author name always stays on one line (long names are cut with an ellipsis) so every author row has the same height and the
   names sit level across cards. A block-level link is needed for text-overflow; the avatar is an inline image beside the text. */
.orv-card-author-row .orv-card-author-link { display: block; flex: 0 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; line-height: 22px; }
.orv-card-author-row .orv-card-author-link .orv-avatar-sm { display: inline-block; vertical-align: middle; margin-right: 0.5rem; margin-top: -2px; }
.orv-card-author-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--silver); text-decoration: none; font-size: 0.82rem; }
.orv-card-author-link:hover { color: var(--aurora-cyan); }
.orv-avatar-sm { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; background: var(--midnight-3); flex: none; }
.orv-like-count { margin-left: auto; font-size: 0.8rem; color: var(--silver-2); display: inline-flex; align-items: center; gap: 0.3rem; }
/* Card footer stats: comments + likes grouped on the right (the group takes the auto margin) */
.orv-card-stats { margin-left: auto; display: inline-flex; align-items: center; gap: 0.8rem; flex: none; }
.orv-card-stats .orv-like-count { margin-left: 0; }
.orv-comment-count { font-size: 0.8rem; color: var(--silver-2); display: inline-flex; align-items: center; gap: 0.3rem; }
.orv-comment-count svg { flex: none; }
/* Photo of the Month: submission invitation */
.orv-potm-invite { display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; flex-wrap: wrap; margin: 0 0 1.8rem; padding: 1rem 1.3rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.02); }
.orv-potm-invite p { margin: 0; color: var(--silver); font-size: 1rem; }
.orv-potm-invite strong { color: var(--polar-white); font-weight: 600; }

/* Empty / loading / error states */
.orv-empty-state { text-align: center; padding: 3.5rem 1.5rem; border: 1px dashed var(--line); border-radius: var(--radius-lg); color: var(--silver); }
.orv-empty-title { color: var(--polar-white); font-size: 1.05rem; margin: 0 0 0.5rem; }
.orv-empty-state p:last-of-type { margin-bottom: 1.6rem; }
.orv-loading { text-align: center; padding: 3rem 1.5rem; color: var(--silver); display: flex; align-items: center; justify-content: center; gap: 0.7rem; }
.orv-spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--aurora-cyan); animation: orv-spin 0.8s linear infinite; }
@media (prefers-reduced-motion: reduce) { .orv-spinner { animation-duration: 2.4s; } }
@keyframes orv-spin { to { transform: rotate(360deg); } }

.orv-visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Forms */
.orv-form { max-width: 560px; }
.orv-form-field { margin-bottom: 1.3rem; }
.orv-form-field label { display: block; font-size: 0.85rem; color: var(--polar-white); margin-bottom: 0.45rem; }
.orv-form-hint { font-size: 0.78rem; color: var(--silver-2); margin-top: 0.4rem; }
.orv-form-field input[type="text"],
.orv-form-field input[type="email"],
.orv-form-field input[type="date"],
.orv-form-field input[type="number"],
.orv-form-field input[type="url"],
.orv-form-field input[type="file"],
.orv-form-field select,
.orv-form-field textarea {
  width: 100%;
  background: var(--midnight-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--polar-white);
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
  font-family: inherit;
}
.orv-form-field textarea { resize: vertical; min-height: 6rem; }
.orv-form-field input:focus, .orv-form-field select:focus, .orv-form-field textarea:focus { outline: 2px solid var(--aurora-cyan); outline-offset: 1px; border-color: var(--aurora-cyan); }
.orv-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .orv-form-row { grid-template-columns: 1fr; } }
.orv-form-error {
  color: var(--orv-error);
  font-size: 0.82rem;
  margin-top: 0.4rem;
}
.orv-checkbox-row { display: flex; align-items: flex-start; gap: 0.7rem; margin-bottom: 0.9rem; }
.orv-checkbox-row input { margin-top: 0.25rem; flex: none; width: 1.1rem; height: 1.1rem; }
.orv-checkbox-row label { font-size: 0.88rem; color: var(--polar-white-dim); }

/* Wizard */
.orv-wizard-steps { display: flex; gap: 0.6rem; margin-bottom: 2.2rem; flex-wrap: wrap; }
.orv-wizard-step { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.45rem 0.9rem; border-radius: var(--orv-radius); border: 1px solid var(--line-strong); color: var(--silver-2); }
.orv-wizard-step.is-active { border-color: var(--orv-ivory); background: var(--orv-ivory); color: var(--orv-void); font-weight: 600; }
.orv-wizard-step.is-done { border-color: var(--aurora-cyan-dim); color: var(--aurora-cyan); }
.orv-wizard-actions { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; }

/* Status pills */
.orv-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--orv-radius);
  border: 1px solid var(--line);
  color: var(--silver);
}
.orv-status-pill.status-approved, .orv-status-pill.status-published { color: var(--aurora-cyan); border-color: var(--aurora-cyan-dim); }
.orv-status-pill.status-pending {
  color: var(--orv-ivory-dim);
  border-color: var(--orv-hair-strong);
}
.orv-status-pill.status-rejected, .orv-status-pill.status-suspended { color: #e8746a; border-color: rgba(232,116,106,0.4); }

/* Profile page */
.orv-profile-header {
  display: flex; gap: 2rem; align-items: flex-start; flex-wrap: wrap;
  margin-bottom: 2.5rem; padding: 2.2rem; border: 1px solid var(--line);
  border-radius: var(--radius-lg); background: var(--glass-bg);
}
.orv-profile-avatar {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--midnight-3);
  flex: none;
  border: 2px solid var(--line-strong);
  box-shadow: 0 0 0 5px rgba(242, 239, 232, 0.06);
}
.orv-profile-header h1 { font-family: var(--font-display); font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin: 0 0 0.25rem; }
.orv-profile-handle { color: var(--aurora-cyan); font-size: 0.95rem; margin: 0 0 0.6rem; }
.orv-profile-region { color: var(--silver); font-size: 0.88rem; margin: 0 0 0.9rem; }
.orv-profile-bio { color: var(--polar-white-dim); max-width: 62ch; margin: 0 0 1.1rem; line-height: 1.6; }
.orv-tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.1rem; }
.orv-tag {
  font-size: 0.75rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--orv-radius);
  border: 1px solid var(--line-strong);
  color: var(--polar-white-dim);
  background: transparent;
}
.orv-profile-equipment { color: var(--silver); font-size: 0.88rem; max-width: 60ch; margin: 0 0 1.1rem; }

.orv-social-row { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.orv-social-row a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border-radius: var(--orv-radius);
  border: 1px solid var(--line-strong);
  background: var(--midnight-2);
  color: var(--polar-white-dim);
  font-size: 0.85rem;
  text-decoration: none;
  transition: border-color var(--dur-fast) var(--ease-premium), color var(--dur-fast) var(--ease-premium), transform var(--dur-fast) var(--ease-premium);
}
.orv-social-row a svg { width: 16px; height: 16px; flex: none; }
.orv-social-row a:hover { border-color: var(--aurora-cyan); color: var(--polar-white); transform: translateY(-1px); }
.orv-social-row a:focus-visible { outline: 2px solid var(--aurora-cyan); outline-offset: 2px; }

/* Photo detail */
.orv-photo-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2.4rem; align-items: start; }
@media (max-width: 900px) { .orv-photo-layout { grid-template-columns: 1fr; } }
/* Capped to the viewport left over after the fixed site header (82px) and
   the Collective subnav, so the full photograph is visible without
   scrolling on a typical desktop screen instead of running on for
   screens below the fold — object-fit:contain (not cover) means no crop
   regardless of the photo's own aspect ratio, and width/height:auto with
   the max- constraints means a lower-resolution photo is never stretched
   past its own natural size to fill the box. */
.orv-photo-media {
  position: relative;
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
  background: var(--midnight-2);
  height: min(calc(100vh - 260px), 720px);
  min-height: 320px;
  display: flex; align-items: center; justify-content: center;
}
.orv-photo-media img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.orv-photo-media-trigger { all: unset; cursor: pointer; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
@media (max-width: 900px) {
  /* height:auto on the container alone does not establish a definite
     height, so the trigger's height:100% (and the img's max-height:100%
     that depends on it) fail to resolve against it and instead grow to
     the image's full intrinsic height — which this container's
     overflow:hidden then silently crops. Giving every element in the
     chain its own direct max-height:80vh (not a percentage of a
     possibly-auto parent) fixes that while still letting the box shrink
     to a shorter landscape photo instead of forcing a tall empty box. */
  .orv-photo-media { height: auto; max-height: 80vh; }
  .orv-photo-media-trigger { height: auto; max-height: 80vh; }
  .orv-photo-media img { max-height: 80vh; }
}
.orv-photo-media-trigger img { transition: opacity var(--dur-fast) var(--ease-premium); }
.orv-photo-media-trigger:hover img { opacity: 0.9; }
.orv-photo-media-trigger:focus-visible { outline: 2px solid var(--aurora-cyan); outline-offset: 3px; border-radius: var(--radius-lg); }

/* Larger-view lightbox — a bigger focused box, not a real native-resolution
   zoom. Native <dialog> gives Escape-to-close and focus handling for free,
   same pattern as .orv-signin-dialog. */
.orv-lightbox-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  max-width: min(92vw, 1200px);
  max-height: 90vh;
  width: fit-content;
  height: fit-content;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--midnight);
  box-shadow: var(--shadow-deep);
  display: flex;
  flex-direction: column;
}
.orv-lightbox-dialog::backdrop { background: rgba(5, 7, 12, 0.85); }
.orv-lightbox-img { display: block; max-width: min(92vw, 1200px); max-height: calc(90vh - 3.4rem); width: auto; height: auto; object-fit: contain; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.orv-lightbox-caption { padding: 0.8rem 1.2rem; margin: 0; color: var(--polar-white-dim); font-size: 0.9rem; }
.orv-lightbox-count { color: var(--silver-2); }
.orv-lightbox-close,
.orv-lightbox-nav {
  position: absolute;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(5, 7, 12, 0.6);
  color: var(--polar-white);
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orv-lightbox-close { top: 0.6rem; right: 0.6rem; width: 2.2rem; height: 2.2rem; font-size: 1.3rem; }
/* Fixed to the viewport, not the dialog's own box: .orv-lightbox-dialog is
   width/height:fit-content, sized to whatever photo is showing, so an
   absolutely-positioned arrow (relative to that box) jumps to a different
   screen position for a tall portrait photo than a wide landscape one —
   exactly the "chasing the cursor" problem reported. Anchoring to the
   viewport instead keeps both arrows at the same spot for every photo. A
   dialog descendant with no transformed ancestor still resolves
   position:fixed against the viewport as normal, regardless of the native
   <dialog>'s top-layer paint stacking. */
.orv-lightbox-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 2.6rem; height: 2.6rem; font-size: 1.6rem; }
.orv-lightbox-prev { left: 2rem; }
.orv-lightbox-next { right: 2rem; }
.orv-lightbox-close:hover,
.orv-lightbox-nav:hover { border-color: var(--aurora-cyan); color: var(--polar-white); }
.orv-lightbox-close:focus-visible,
.orv-lightbox-nav:focus-visible { outline: 2px solid var(--aurora-cyan); outline-offset: 2px; }

@media (max-width: 560px) {
  .orv-lightbox-nav { width: 2.2rem; height: 2.2rem; font-size: 1.3rem; }
  .orv-lightbox-prev { left: 0.6rem; }
  .orv-lightbox-next { right: 0.6rem; }
  /* The visible circle stays small/unobtrusive, but a touch target that
     size is hard to hit precisely without the finger landing on the photo
     instead — this invisible ::before extends the actual tappable area
     well past the drawn circle (to roughly 50px square, above the ~44px
     minimum touch-target guidelines) without changing how the button
     looks. position:fixed on .orv-lightbox-nav already makes it a
     containing block for this absolutely-positioned pseudo-element. */
  .orv-lightbox-nav::before { content: ""; position: absolute; inset: -14px; }
}
.orv-photo-actions { display: flex; gap: 0.8rem; margin: 1.2rem 0; flex-wrap: wrap; }
.orv-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--orv-radius);
}
.orv-like-btn.is-liked {
  color: var(--orv-error);
  border-color: var(--orv-error);
}
.orv-spec-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.orv-spec-table th { text-align: left; color: var(--silver-2); font-weight: 400; padding: 0.5rem 0.8rem 0.5rem 0; width: 40%; vertical-align: top; }
.orv-spec-table td { padding: 0.5rem 0; color: var(--polar-white-dim); }
.orv-author-card { display: flex; align-items: center; gap: 0.9rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-md); margin: 1.4rem 0; }
.orv-author-card .orv-profile-avatar { width: 52px; height: 52px; }
/* Without a bio paragraph between them, the name and the "View Full
   Profile" link otherwise sit on the same inline line with only a text-node
   space between them — force the link onto its own line with real breathing
   room above it. */
.orv-author-card a.btn-ghost { display: flex; width: fit-content; margin-top: 0.7rem; }

/* Admin */
.orv-admin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.orv-admin-table th { text-align: left; color: var(--silver-2); font-weight: 400; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); }
.orv-admin-table td { padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.orv-admin-row-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.orv-admin-tabs { display: flex; gap: 0.35rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
/* same language as the Sightline tabs: square-ish, small caps tracking, the active tab is an ivory block */
.orv-admin-tab { padding: 0.65rem 1.1rem; min-height: 44px; border-radius: var(--orv-radius); border: 1px solid var(--line-strong); background: transparent; color: var(--silver-2); cursor: pointer; font-family: var(--font-sans); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; transition: color var(--dur-fast) var(--ease-premium), background-color var(--dur-fast), border-color var(--dur-fast); }
.orv-admin-tab:hover { color: var(--polar-white-dim); border-color: var(--orv-silver-2); }
.orv-admin-tab.is-active { border-color: var(--orv-ivory); background: var(--orv-ivory); color: var(--orv-void); font-weight: 600; }

.orv-load-more-sentinel { height: 1px; }

.orv-signin-dialog {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--midnight);
  color: var(--polar-white);
  padding: 1.8rem;
  max-width: 400px;
  width: calc(100vw - 2.4rem);
  box-shadow: var(--shadow-deep);
}
.orv-signin-dialog::backdrop { background: rgba(5, 7, 12, 0.75); }

@media (max-width: 420px) {
  .orv-hero-actions { flex-direction: column; align-items: stretch; }
  .orv-wizard-actions { flex-direction: column; }
}

/* Accessibility: visible keyboard focus on every interactive Collective
   element that doesn't already get one from a more specific rule above,
   and respect prefers-reduced-motion on the few hover/scale transitions. */
.orv-hero-photo-card:focus-visible,
.orv-hero-photo-author:focus-visible,
.orv-recent-feature-media:focus-visible,
.orv-hero-actions a:focus-visible,
.orv-potm-actions a:focus-visible,
.orv-award-card:focus-visible,
.orv-gallery-card-media:focus-visible,
.orv-card-author-link:focus-visible,
.orv-carousel-frame:focus-visible,
.orv-carousel-arrow:focus-visible,
.orv-carousel-playpause:focus-visible,
.orv-carousel-thumb:focus-visible,
.orv-carousel-author:focus-visible,
.orv-subnav-links a:focus-visible,
.orv-subnav-submit:focus-visible,
[data-orv-join-toggle]:focus-visible {
  outline: 2px solid var(--aurora-cyan);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .orv-gallery-card-media img,
  .orv-award-card,
  .orv-astrographer-card,
  .orv-carousel-stage-inner,
  .orv-carousel-thumb,
  .orv-carousel-arrow,
  .orv-hero-photo-card img {
    transition: none !important;
  }
}

/* Let the fixed starfield canvas show through less within the Collective's
   own content — a static, low-opacity wash behind <main> only (the fixed
   header/mobile-nav/search-overlay sit outside <main> and are unaffected),
   calmer for reading long sections and so it never competes with the
   photographs themselves. The global starfield canvas/script is untouched;
   this is a purely additive, Collective-scoped CSS layer. */
body > main { position: relative; }
body > main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(5, 7, 12, 0.3);
  pointer-events: none;
}

/* =========================================================================
   Comments V1 — editorial, sober: subtle dividers instead of a card per
   comment, no bright gradients, no glow, no pill backgrounds beyond the
   ones already used site-wide for status pills. Lives only on the
   individual photo page.
   ========================================================================= */
.orv-comments-section { border-top: 1px solid var(--line); }
.orv-comments-heading { font-family: var(--font-display); font-size: clamp(1.2rem, 2.4vw, 1.5rem); margin: 0 0 1.4rem; scroll-margin-top: 110px; }

.orv-comment-gate { color: var(--silver); font-size: 0.92rem; padding: 1rem 0; }
.orv-comment-gate a { color: var(--aurora-cyan); }

.orv-comment-form { margin-bottom: 2rem; }
.orv-comment-form textarea {
  width: 100%; min-height: 4.5rem; padding: 0.8rem 1rem; resize: vertical;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03); color: var(--polar-white); font: inherit; font-size: 0.92rem;
}
.orv-comment-form textarea:focus-visible { outline: 2px solid var(--aurora-cyan); outline-offset: 2px; }
.orv-comment-form-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 0.6rem; }
.orv-comment-counter { font-size: 0.76rem; color: var(--silver-2); }

.orv-comment-list { list-style: none; margin: 0; padding: 0; }
.orv-comment { padding: 1.2rem 0; border-top: 1px solid var(--line); }
.orv-comment:first-child { border-top: none; }
.orv-comment.is-hidden { opacity: 0.55; }
.orv-comment-head { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.orv-comment-author { font-weight: 600; color: var(--polar-white); text-decoration: none; }
.orv-comment-author:hover { color: var(--aurora-cyan); }
.orv-comment-author:focus-visible { outline: 2px solid var(--aurora-cyan); outline-offset: 2px; border-radius: 2px; }
.orv-comment-role { font-size: 0.68rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--silver-2); border: 1px solid var(--line-strong); border-radius: 4px; padding: 0.1rem 0.4rem; }
.orv-comment-head time { font-size: 0.78rem; color: var(--silver-2); }
.orv-comment-edited { font-size: 0.78rem; color: var(--silver-2); font-style: italic; }
.orv-comment-body { margin: 0; color: var(--polar-white-dim); font-size: 0.92rem; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }

.orv-comment-menu { display: flex; gap: 1rem; margin-top: 0.5rem; }
.orv-comment-menu-btn {
  background: none; border: none; padding: 0; color: var(--silver-2); font-size: 0.78rem; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px; text-decoration-color: transparent;
  transition: color var(--dur-fast), text-decoration-color var(--dur-fast);
}
.orv-comment-menu-btn:hover { color: var(--polar-white-dim); text-decoration-color: currentColor; }
.orv-comment-menu-btn:focus-visible { outline: 2px solid var(--aurora-cyan); outline-offset: 2px; border-radius: 2px; }

.orv-comment-edit { margin-top: 0.6rem; }
.orv-comment-edit textarea {
  width: 100%; min-height: 4rem; padding: 0.7rem 0.9rem; resize: vertical;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03); color: var(--polar-white); font: inherit; font-size: 0.9rem;
}
.orv-comment-edit-actions { display: flex; gap: 0.7rem; margin-top: 0.6rem; }

.orv-comment-empty { color: var(--silver-2); font-size: 0.9rem; padding: 0.6rem 0; }
.orv-comment-load-more { margin-top: 1rem; }

/* Report dialog — same native <dialog> pattern as the sign-in and photo
   lightbox dialogs already on this page (Escape/backdrop handled by the
   platform, not reimplemented here). */
.orv-report-dialog {
  width: min(420px, 92vw); padding: 1.6rem; border: 1px solid var(--line-strong);
  border-radius: var(--radius-md); background: var(--midnight); color: var(--polar-white-dim);
  box-shadow: var(--shadow-deep);
}
.orv-report-dialog::backdrop { background: rgba(5,7,12,0.75); }
.orv-report-dialog h3 { font-family: var(--font-display); margin: 0 0 1rem; color: var(--polar-white); }
.orv-report-reasons { border: none; padding: 0; margin: 0 0 1rem; display: flex; flex-direction: column; gap: 0.6rem; }
.orv-report-reasons legend { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--silver-2); margin-bottom: 0.4rem; padding: 0; }
.orv-report-reason { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; cursor: pointer; }
.orv-report-reason input:focus-visible { outline: 2px solid var(--aurora-cyan); outline-offset: 2px; }

@media (max-width: 640px) {
  .orv-comment-form-row { flex-direction: column; align-items: stretch; gap: 0.6rem; }
  .orv-comment-form-row .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .orv-comment-menu-btn { transition: none; }
}

/* =========================================================================
   Notification bell — sober, lineal icon, small dot/count badge, no glow,
   no bounce. Popover on desktop, bottom sheet on mobile, same markup for
   both (CSS-only layout switch).
   ========================================================================= */
/* The site already gives every `.wrap` container `position:relative;
   z-index:1` (see styles-20260930.css). `body > main` is also
   `position:relative` (see the starfield-wash rule above), so its own
   inner `.wrap` divs sit in the same root stacking context as the
   subnav's `.wrap` — and being later in the DOM, they'd paint over a
   fixed-position popover living in the subnav's `.wrap`, no matter how
   high that popover's own z-index is (it's capped by its containing
   stacking context). Scoped override, only for the subnav's own wrap,
   so the bell panel's fixed overlay is never trapped under page content. */
.orv-subnav .wrap { z-index: 150; }
.orv-notif-bell-mount { position: relative; display: inline-flex; align-items: center; }
.orv-notif-bell {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 1px solid transparent;
  background: none; color: var(--polar-white-dim); cursor: pointer;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.orv-notif-bell svg { width: 19px; height: 19px; }
.orv-notif-bell:hover { color: var(--polar-white); border-color: var(--line-strong); }
.orv-notif-bell:focus-visible { outline: 2px solid var(--aurora-cyan); outline-offset: 2px; }
.orv-notif-badge {
  position: absolute;
  top: 0.1rem;
  right: 0.1rem;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: var(--orv-radius);
  background: var(--orv-ivory);
  color: var(--orv-void);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.orv-notif-panel {
  position: absolute; top: calc(100% + 0.6rem); right: 0; z-index: 120;
  width: 340px; max-width: 92vw; max-height: 70vh; overflow-y: auto;
  background: var(--space-black-2); border: 1px solid var(--line-strong); border-radius: var(--radius-md);
  box-shadow: var(--shadow-deep); padding: 1rem;
}
.orv-notif-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.7rem; }
.orv-notif-panel-head h3 { font-family: var(--font-display); font-size: 1rem; margin: 0; }
.orv-notif-mark-all { background: none; border: none; color: var(--aurora-cyan); font-size: 0.78rem; cursor: pointer; padding: 0; }
.orv-notif-mark-all:hover { text-decoration: underline; }
.orv-notif-mark-all:focus-visible, .orv-notif-view-all:focus-visible { outline: 2px solid var(--aurora-cyan); outline-offset: 2px; }

.orv-notif-list { list-style: none; margin: 0; padding: 0; }
.orv-notif-item { border-top: 1px solid var(--line); }
.orv-notif-item:first-child { border-top: none; }
.orv-notif-link {
  display: flex; align-items: flex-start; gap: 0.7rem; padding: 0.7rem 0.2rem; text-decoration: none; color: inherit;
  border-radius: var(--radius-sm);
}
.orv-notif-link:hover { background: rgba(255,255,255,0.03); }
.orv-notif-link:focus-visible { outline: 2px solid var(--aurora-cyan); outline-offset: -2px; }
.orv-notif-item.is-unread .orv-notif-link {
  background: rgba(242, 239, 232, 0.04);
}
.orv-notif-item.is-unread .orv-notif-text span:first-child { color: var(--polar-white); font-weight: 500; }
.orv-notif-thumb { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; flex: none; background: var(--midnight-3); }
.orv-notif-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--midnight-3);
  color: var(--orv-silver);
  flex: none;
  font-size: 1rem;
}
.orv-notif-text { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.orv-notif-text span:first-child { font-size: 0.86rem; color: var(--silver); line-height: 1.4; }
.orv-notif-text time { font-size: 0.74rem; color: var(--silver-2); }
.orv-notif-empty { color: var(--silver-2); font-size: 0.86rem; text-align: center; padding: 1.2rem 0; margin: 0; }
.orv-notif-view-all { display: block; text-align: center; margin-top: 0.8rem; padding-top: 0.8rem; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--aurora-cyan); text-decoration: none; }
.orv-notif-view-all:hover { text-decoration: underline; }

@media (max-width: 640px) {
  /* Bottom sheet: same DOM, same JS, only the position/shape changes. */
  .orv-notif-panel {
    position: fixed; top: auto; bottom: 0; left: 0; right: 0;
    width: auto; max-width: none; max-height: 75vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-bottom: none; padding: 1.2rem 1.2rem calc(1.2rem + env(safe-area-inset-bottom, 0px));
  }
}

/* Dashboard "Notifications" tab */
.orv-notif-filter-row { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.orv-notif-list-dashboard .orv-notif-link { padding: 0.9rem 0.3rem; }
.orv-notif-list-dashboard .orv-notif-text span:first-child { font-size: 0.92rem; }

/* identity additions (new rules without an equivalent in the previous edition) */
.orv-form-hint a {
  color: var(--orv-ivory);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--orv-hair-strong);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.orv-form-hint a:hover {
  text-decoration-color: var(--orv-ivory);
}
/* Collective landing */
.orv-step {
  border-radius: var(--orv-radius-card);
}

@media (min-width: 861px) {
  .orv-subnav-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .orv-subnav .wrap {
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
  }
}
/* Orbital signature (sparingly): hero + Collective hero */
.orv-hero::before {
  content: "";
  position: absolute;
  left: 66%;
  top: -140px;
  z-index: 0;
  pointer-events: none;
  width: min(118vmin, 1000px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000' fill='none' stroke='%23f2efe8' stroke-linecap='round'%3E%3Cpath d='M860 330A400 400 0 1 0 904 520' stroke-width='1' stroke-opacity='.2'/%3E%3Cpath d='M130 770Q500 640 880 300' stroke-width='1' stroke-opacity='.14'/%3E%3Ccircle cx='880' cy='300' r='4' fill='%23f2efe8' stroke='none' fill-opacity='.45'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.6;
}
.orv-hero > * {
  position: relative;
  z-index: 1;
}
/* Layout stability (CLS) on the Collective landing
   The slots are empty until the page script fills them, which pushed everything below them down when the data arrived. While a slot is still
   :empty it now reserves the room of what will go into it, expressed with the design's own constants (the hero card is 4:3, the stat band is one row,
   a section shows at least its empty/preview state), never with the height of today's data. Once content is inserted :empty stops matching and the
   content takes its natural height, so zero results, few results, many results and failures never leave a permanent gap. */
[data-orv-hero-photo-slot]:empty {
  aspect-ratio: 4 / 3;
  margin-bottom: 1.9rem;
}
[data-orv-stats-slot]:empty {
  min-height: 5.5rem;
}
[data-orv-potm-slot]:empty {
  min-height: calc(clamp(300px, 42vw, 460px) + 12.5rem);
}
/* the carousel stage clamp of collective-*.css + its caption and thumbnails row */
[data-orv-recent-slot]:empty {
  min-height: 36rem;
}
/* desktop mosaic of up to 5 photographs */
[data-orv-featured-slot]:empty {
  min-height: 13rem;
}

@media (max-width: 1000px) {
  [data-orv-recent-slot]:empty {
    min-height: 40rem;
  }
  [data-orv-featured-slot]:empty {
    min-height: 27rem;
  }
}

@media (max-width: 640px) {
  [data-orv-recent-slot]:empty {
    min-height: calc(2 * ((100vw - 3rem) * 0.75 + 7rem));
  }
  [data-orv-featured-slot]:empty {
    min-height: 28rem;
  }
}
[data-orv-join-slot]:empty {
  min-height: 14rem;
}

@media (max-width: 380px) {
  [data-orv-stats-slot]:empty {
    min-height: 10.2rem;
  }
}
/* the three counters wrap onto two rows on the narrowest phones *//* Sightline monochrome icons (shared sprite assets/icons/orivon-sky-icons-*.svg; decorative, aria-hidden) */
.orv-ico {
  flex: none;
  vertical-align: -0.2em;
  color: var(--orv-silver);
}
