/* =========================================================
   AURORA — 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)
   ========================================================= */

.placard {
  position: fixed;
  top: 108px;
  right: 12px;
  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(92, 226, 166, 0.36);
  border-radius: 14px;
  background:
    linear-gradient(rgba(92, 226, 166, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 226, 166, 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(--aurora);
}

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

.placard-scale {
  margin-top: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--aurora-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(--aurora);
  font-size: 0.7rem;
}

.placard-line i {
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(92, 226, 166, 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(--aurora-bright); }

.placard-formula {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}
.placard-formula .root  { color: var(--root); }
.placard-formula .third { color: var(--third); }
.placard-formula .fifth { color: var(--fifth); }
.placard-formula .ext   { color: var(--ext); }

.placard-selection {
  margin: 10px 0 0;
  padding: 8px 10px;
  border: 1px solid rgba(92, 226, 166, 0.28);
  border-radius: 9px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: #f1f8f4;
  background: rgba(92, 226, 166, 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: #f1f8f4;
  text-shadow: 0 0 22px rgba(160, 246, 205, 0.25);
}

/* Which form, the gutter the page reserves for placard + dock, and
   where the dock starts beneath the placard. The app column is allowed
   to grow into the left margin the tools no longer need. */
@media (min-width: 1640px) {
  body.has-placard { padding-right: 258px; }
  body.has-placard .helm { padding-right: 258px; }
  body.has-placard .app-shell { width: min(1700px, calc(100% - 28px)); }
  .placard-inner { height: 330px; overflow: hidden; }
  body { --dock-top: 452px; }
}

/* Laptops: the full placard stays, a little narrower, so the chart's
   headline is always in the right margin while you scroll. */
@media (min-width: 1180px) and (max-width: 1639px) {
  body.has-placard { padding-right: 228px; }
  body.has-placard .helm { padding-right: 228px; }
  body.has-placard .app-shell { width: min(1700px, calc(100% - 28px)); }
  .placard-inner { width: 200px; height: 310px; overflow: hidden; padding: 14px 14px 16px; }
  .placard-root { font-size: 4rem; }
  .placard-scale { font-size: 1.3rem; }
  body { --dock-top: 432px; }
}

/* Narrow laptops and tablets: the vertical rail. */
@media (min-width: 1000px) and (max-width: 1179px) {
  .placard-inner { display: none; }
  .placard-rail { display: block; height: 190px; max-height: 190px; padding: 14px 0; font-size: 1.5rem; }
  body.has-placard { padding-right: 96px; }
  body.has-placard .helm { padding-right: 96px; }
  body.has-placard .app-shell { width: min(1700px, calc(100% - 28px)); }
  body { --dock-top: 312px; }
}

@media (max-width: 999px) {
  .placard { display: none; }
}

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