/* Orbit Spine — vertical expanding rail + bottom mobile dock + sheet menu */

.a55-orbit {
  --orbit-spine: 92px;
  --orbit-spine-open: 248px;
}

@media (min-width: 1081px) {
  .a55-orbit {
    padding-left: var(--orbit-spine);
  }
}

/* ── Spine ── */
.a55-orbit-spine {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  width: var(--orbit-spine);
  display: flex;
  flex-direction: column;
  background: rgba(6, 42, 68, 0.94);
  backdrop-filter: blur(18px);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transition: width 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.a55-orbit-spine:hover,
.a55-orbit-spine:focus-within {
  width: var(--orbit-spine-open);
}

.a55-orbit-spine-glow {
  position: absolute;
  top: 20%;
  left: 0;
  width: 3px;
  height: 40%;
  background: linear-gradient(180deg, transparent, var(--signal), transparent);
  filter: blur(1px);
  animation: a55-orbit-glow 4s ease-in-out infinite;
}

@keyframes a55-orbit-glow {
  0%, 100% { opacity: 0.45; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(12px); }
}

/* Logo */
.a55-orbit-logo {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 16px 18px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.a55-orbit-logo-ring {
  position: absolute;
  left: 14px;
  width: 52px;
  height: 52px;
  border: 2px solid rgba(200, 29, 37, 0.55);
  border-radius: 50%;
  animation: a55-orbit-spin 18s linear infinite;
}

@keyframes a55-orbit-spin {
  to { transform: rotate(360deg); }
}

.a55-orbit-logo-mark {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #c81d25, #9e151c);
  color: #fff;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  box-shadow: 0 8px 24px rgba(200, 29, 37, 0.35);
}

.a55-orbit-logo-type {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s, transform 0.3s;
  white-space: nowrap;
}

.a55-orbit-spine:hover .a55-orbit-logo-type,
.a55-orbit-spine:focus-within .a55-orbit-logo-type {
  opacity: 1;
  transform: translateX(0);
}

.a55-orbit-logo-type strong {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: 0.06em;
}

.a55-orbit-logo-type em {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a67c52;
}

.a55-orbit-logo-compact { padding: 0; }
.a55-orbit-logo-compact .a55-orbit-logo-ring { display: none; }
.a55-orbit-logo-compact .a55-orbit-logo-type {
  opacity: 1;
  transform: none;
}

/* Rail nav */
.a55-orbit-rail {
  position: relative;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 0;
  scrollbar-width: thin;
}

.a55-orbit-rail-beam {
  position: absolute;
  left: 28px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
}

.a55-orbit-rail-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 18px 11px 20px;
  text-decoration: none;
  color: rgba(248, 250, 252, 0.72);
  font-size: 0.8125rem;
  font-weight: 650;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.a55-orbit-rail-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.a55-orbit-rail-dot {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.a55-orbit-rail-link.is-active .a55-orbit-rail-dot {
  border-color: var(--signal);
  background: var(--signal);
  box-shadow: 0 0 12px rgba(200, 29, 37, 0.65);
}

.a55-orbit-rail-label {
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.28s, transform 0.28s;
  white-space: nowrap;
}

.a55-orbit-spine:hover .a55-orbit-rail-label,
.a55-orbit-spine:focus-within .a55-orbit-rail-label {
  opacity: 1;
  transform: translateX(0);
}

.a55-orbit-rail-link.is-active {
  color: #fff;
}

.a55-orbit-rail-link.is-active .a55-orbit-rail-label {
  font-weight: 800;
}

/* Tools */
.a55-orbit-tools {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.a55-orbit-tool-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-inline: auto;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(248, 250, 252, 0.85);
  cursor: pointer;
  text-decoration: none;
  transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.a55-orbit-tool-btn svg { width: 18px; height: 18px; }

.a55-orbit-tool-btn:hover,
.a55-orbit-tool-btn.is-active {
  border-color: rgba(200, 29, 37, 0.55);
  background: rgba(200, 29, 37, 0.15);
  color: #fff;
}

.a55-orbit-tool-btn.is-signed { color: #d4c4a0; }

.a55-orbit-tool-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--signal);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
}

.a55-orbit-tool-badge.is-empty {
  display: none;
}

.a55-orbit-search {
  position: relative;
}

.a55-orbit-search-field {
  position: absolute;
  left: calc(100% + 10px);
  bottom: 0;
  display: flex;
  gap: 6px;
  width: 220px;
  padding: 8px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-8px);
  transition: opacity 0.25s, transform 0.25s;
}

.a55-orbit-search.is-open .a55-orbit-search-field,
.a55-orbit-search:focus-within .a55-orbit-search-field {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.a55-orbit-search-field input {
  flex: 1;
  border: 0;
  font: inherit;
  font-size: 0.8125rem;
  outline: none;
  min-width: 0;
}

.a55-orbit-search-field button {
  border: 0;
  border-radius: 10px;
  background: #1a3d32;
  color: #fff;
  font-weight: 800;
  padding: 8px 12px;
  cursor: pointer;
}

.a55-orbit-spine-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 16px 16px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.82);
  white-space: nowrap;
  overflow: hidden;
}

.a55-orbit-pulse {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1f6b4a;
  animation: a55-orbit-pulse 2s ease-in-out infinite;
}

@keyframes a55-orbit-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(31, 107, 74, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(31, 107, 74, 0); }
}

/* ── Mobile dock ── */
.a55-orbit-dock {
  display: none;
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 48;
  transform: translateX(-50%);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(6, 42, 68, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.35);
  gap: 4px;
}

.a55-orbit-dock-item {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(248, 250, 252, 0.75);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.a55-orbit-dock-item svg { width: 20px; height: 20px; }

.a55-orbit-dock-item:hover,
.a55-orbit-dock-item.is-active {
  background: rgba(200, 29, 37, 0.25);
  color: #fff;
}

.a55-orbit-dock-item.is-signed { color: #d4c4a0; }

/* ── Mobile sheet ── */
.ts-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(15, 23, 42, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}

.ts-nav-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

body.ts-nav-open { overflow: hidden; }

.a55-orbit-sheet.ts-nav {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 120;
  transform: translateY(105%);
  transition: transform var(--transition-slow);
  pointer-events: none;
}

.a55-orbit-sheet.ts-nav.is-open {
  transform: translateY(0);
  pointer-events: auto;
}

.a55-orbit-sheet-panel {
  max-height: 78vh;
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -20px 60px rgba(15, 23, 42, 0.2);
  overflow: hidden;
}

.a55-orbit-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.a55-orbit-sheet-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: #062a44;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.a55-orbit-sheet-search {
  display: flex;
  gap: 8px;
  padding: 14px 20px;
}

.a55-orbit-sheet-search input {
  flex: 1;
  padding: 12px 14px;
  border: 1.5px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  font: inherit;
}

.a55-orbit-sheet-search button {
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  background: var(--signal);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.a55-orbit-sheet-links {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px 16px;
}

.a55-orbit-sheet-link {
  display: block;
  padding: 14px 16px;
  margin-bottom: 4px;
  border-radius: 12px;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.a55-orbit-sheet-link:hover {
  border-color: rgba(200, 29, 37, 0.35);
  transform: translateX(4px);
}

.a55-orbit-sheet-link.is-active {
  background: #062a44;
  color: #fff;
  border-color: #062a44;
}

.a55-orbit-sheet-foot {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 20px 22px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 0.82rem;
  color: #64748b;
}

.a55-orbit-sheet-foot a {
  color: #0a3d62;
  font-weight: 650;
  text-decoration: none;
}

.a55-orbit-main {
  min-height: 100vh;
}

/* Footer */
.a55-titleblock {
  margin-top: 56px;
  background: var(--blueprint-deep);
  color: var(--on-dark);
  border-top: 3px solid var(--signal);
}
.a55-titleblock-frame { padding: 28px 0 0; }
.a55-tb-meta {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(243, 248, 252, 0.16);
}
.a55-tb-badge {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--kraft);
  color: var(--kraft);
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.05rem;
}
.a55-tb-meta strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.a55-tb-meta p {
  margin: 6px 0 0;
  max-width: 52ch;
  color: var(--on-dark-muted);
  line-height: 1.5;
  font-size: 0.92rem;
}
.a55-tb-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: 22px 0;
}
.a55-tb-col h4 {
  margin: 0 0 10px;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--kraft);
  font-weight: 800;
}
.a55-tb-col a,
.a55-tb-col p {
  display: block;
  margin: 0 0 8px;
  color: var(--on-dark-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}
.a55-tb-col a:hover { color: #fff; }
.a55-tb-hours { font-size: 0.85rem !important; color: var(--on-dark-muted); }
.a55-tb-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
  padding: 12px 0 16px;
  border-top: 1px solid rgba(243, 248, 252, 0.16);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  font-weight: 700;
}

@media (max-width: 1080px) {
  .a55-orbit { padding-left: 0; }
  .a55-orbit-spine { display: none; }
  .a55-orbit-dock {
    display: flex;
  }
  .page-main.a55-orbit-main {
    padding-bottom: 88px;
  }
}

@media (max-width: 560px) {
  .a55-tb-cols { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .a55-orbit-logo-ring,
  .a55-orbit-spine-glow,
  .a55-orbit-pulse {
    animation: none !important;
  }
}
