/* =========================================================
   CONSTELLATION — Placard
   Big-type scale readout on the right. Two forms:
     >= 1640px : horizontal placard, 230px wide, in the right margin
     1000-1639px: vertical rail, 72px wide, text reads bottom to top
     <  1000px : hidden (the Helm carries the scale name)
   ========================================================= */

/* The Control Center column: fixed on the right, readout on top,
   tool rail beneath. Children slide in on their own. */
.control-center {
  position: fixed;
  top: 96px;
  right: 12px;
  z-index: 55;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-height: calc(100vh - 110px);
  pointer-events: none;
}

.control-center > * { pointer-events: auto; }

.cc-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass);
  opacity: 0;
  transition: opacity 220ms ease;
}

.cc-title-short { display: none; font-style: normal; font-size: 0.8rem; }
body.cc-visible .cc-title { opacity: 0.85; }

.placard {
  position: relative;
  z-index: 55;
  transform: translateX(130%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 220ms ease, visibility 0s linear 220ms;
}

.placard.placard-visible {
  transform: none;
  visibility: visible;
  pointer-events: auto;
  transition: transform 220ms ease, visibility 0s;
}

/* Shared skin. */
.placard-inner,
.placard-rail {
  border: 1px solid rgba(240, 168, 60, 0.36);
  border-radius: 14px;
  background:
    linear-gradient(rgba(240, 168, 60, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 168, 60, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, rgba(12, 16, 32, 0.96), rgba(6, 10, 22, 0.95));
  background-size: 28px 28px, 28px 28px, auto;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.48);
}

/* Horizontal placard. */
.placard-inner {
  width: 230px;
  padding: 16px 18px 18px;
  text-align: center;
}

.placard-eyebrow {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
}

.placard-root {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5.2rem;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: #fbf2e2;
  text-shadow: 0 0 26px rgba(255, 196, 90, 0.28), 0 2px 0 rgba(0, 0, 0, 0.4);
}

.placard-scale {
  margin-top: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--brass-bright);
}

.placard-scale small {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.placard-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 10px;
  color: var(--brass);
  font-size: 0.7rem;
}

.placard-line i {
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 168, 60, 0.6), transparent);
}

.placard-meta {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: var(--muted);
}

.placard-map { color: var(--brass-bright); }

.placard-selection {
  margin: 10px 0 0;
  padding: 8px 10px;
  border: 1px solid rgba(240, 168, 60, 0.28);
  border-radius: 9px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: #fbf2e2;
  background: rgba(240, 168, 60, 0.06);
}

/* Vertical rail. */
.placard-rail {
  display: none;
  width: 72px;
  max-height: calc(100vh - 140px);
  padding: 22px 0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 72px;
  letter-spacing: 0.06em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fbf2e2;
  text-shadow: 0 0 22px rgba(255, 196, 90, 0.25);
}

/* Which form, and the gutter the page reserves for the column. */
@media (min-width: 1640px) {
  body.has-control-center { padding-right: 258px; }
  body.has-control-center .helm { padding-right: 258px; }
}

@media (min-width: 900px) and (max-width: 1639px) {
  .placard-inner { display: none; }
  .placard-rail { display: block; }
  .cc-title-long { display: none; }
  .cc-title-short { display: inline; }
  body.has-control-center { padding-right: 96px; }
  body.has-control-center .helm { padding-right: 96px; }
  .placard-rail { max-height: calc(100vh - 470px); }
}

@media (max-width: 899px) {
  .control-center { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .placard,
  .placard.placard-visible { transition: none; }
}

.control-center { overflow: visible; }
