/* FoF Pages. Page slug MUST be observation-deck. Other forum pages keep their styling. */

.Pages[data-slug="observation-deck"] {
  background: #070d16;
}

.Pages[data-slug="observation-deck"] .Pages-container {
  max-width: none;
  width: 100%;
  padding: 0;
  white-space: normal;
}

.Pages[data-slug="observation-deck"] .Pages-page > .Hero,
.Pages[data-slug="observation-deck"] .Pages-page > .PageHero {
  display: none;
}

.Pages[data-slug="observation-deck"] .Post-body {
  margin: 0;
}

.pd {
  --pd-ink: #eef5fa;
  --pd-muted: #9baebb;
  --pd-line: rgba(164,201,224,.15);
  --pd-cyan: #92dfec;
  --pd-amber: #e5b27a;
  position: relative;
  isolation: isolate;
  width: 100%;
  background: #070d16;
  color: var(--pd-ink);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  overflow: hidden;
}

.pd, .pd * {
  box-sizing: border-box;
}

.pd [hidden] {
  display: none !important;
}

.pd a {
  color: inherit;
  text-decoration: none;
}

.pd a:hover {
  text-decoration: none;
}

.pd button, .pd input, .pd textarea {
  font: inherit;
}

.pd button {
  cursor: pointer;
}

.pd button, .pd input, .pd textarea, .pd a {
  -webkit-tap-highlight-color: rgba(146,223,236,.12);
}

.pd a:focus-visible, .pd button:focus-visible, .pd input:focus-visible, .pd textarea:focus-visible {
  outline: 2px solid var(--pd-cyan);
  outline-offset: 4px;
}

.pd svg {
  display: block;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.pd-topline {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 75px;
  padding: 17px 28px;
  border-bottom: 1px solid var(--pd-line);
  background: #0a111b;
}

.pd-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .19em;
}

.pd-brand small {
  display: block;
  padding-top: 3px;
  font: 9px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .19em;
  color: var(--pd-muted);
}

.pd-emblem {
  font-size: 36px;
  font-weight: 300;
  color: var(--pd-amber);
  text-shadow: 0 0 24px rgba(235,164,74,.2);
  line-height: 1;
}

.pd-instruments {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 10px/1.3 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .15em;
  color: var(--pd-muted);
}

.pd-led {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pd-cyan);
  box-shadow: 0 0 10px rgba(146,223,236,.7);
  animation: pd-led 6s ease-in-out infinite;
}

.pd-clock {
  border-left: 1px solid var(--pd-line);
  padding-left: 19px;
  margin-left: 10px;
  color: #c0d4df;
  font-variant-numeric: tabular-nums;
  letter-spacing: .07em;
  min-width: 104px;
}

.pd-window {
  position: relative;
  height: 33vw;
  min-height: 390px;
  max-height: 570px;
  background: #101d34;
  overflow: hidden;
  border-bottom: 1px solid rgba(191,226,245,.2);
}

.pd-vista {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
}

.pd .pd-vista img {
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
  object-fit: cover;
  object-position: center 10%;
  border: 0;
  margin: 0;
  border-radius: 0;
  animation: pd-drift 24s ease-in-out infinite alternate;
  transform: scale(1.04);
}

.pd-window:after {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 0;
  background: linear-gradient(180deg,rgba(4,10,20,.17) 0%, rgba(5,11,21,0) 32%, rgba(5,11,21,.32) 53%, rgba(5,11,21,.93) 100%), linear-gradient(90deg,rgba(5,11,21,.3),transparent 65%);
}

.pd-atmosphere {
  position: absolute;
  pointer-events: none;
  inset: -20%;
  background: radial-gradient(ellipse at 63% 33%,rgba(102,176,255,.12),transparent 50%), radial-gradient(ellipse at 26% 49%,rgba(211,140,242,.1),transparent 48%);
  mix-blend-mode: screen;
  animation: pd-haze 13s ease-in-out infinite alternate;
}

.pd-starfield {
  position: absolute;
  left: 23%;
  top: 10%;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #e0eeff;
  box-shadow: 170px 40px 2px #9ddcff, 421px 102px 2px #d7bdff, 760px 18px 1px #b6eaff, -160px 192px 2px #d1e9ff, 60px 166px 1px #f4dab9, 558px 204px 2px #b6eaff, 960px 186px 1px #bedaff;
  opacity: .25;
  animation: pd-stars 8s ease-in-out infinite alternate;
}

.pd-window-label {
  position: absolute;
  z-index: 1;
  top: 28px;
  left: 28px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: rgba(222,237,255,.74);
  font: 9px/1.3 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .24em;
}

.pd-cross {
  width: 12px;
  height: 12px;
  position: relative;
}

.pd-cross:before, .pd-cross:after {
  position: absolute;
  content: "";
  background: #a9c7de;
}

.pd-cross:before {
  width: 12px;
  height: 1px;
  left: 0;
  top: 5px;
}

.pd-cross:after {
  width: 1px;
  height: 12px;
  top: 0;
  left: 5px;
}

.pd-window-line {
  width: 86px;
  height: 1px;
  background: rgba(206,228,246,.4);
}

.pd-window-caption {
  position: absolute;
  z-index: 1;
  bottom: 52px;
  left: 28px;
  right: 28px;
}

.pd .pd-eyebrow {
  font: 10px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .19em;
  color: var(--pd-muted);
}

.pd-window-caption .pd-eyebrow {
  color: #b6c8da;
  margin-bottom: 15px;
}

.pd .pd-window-caption h1 {
  font-size: 56px;
  line-height: 1.14;
  font-weight: 450;
  letter-spacing: -.045em;
  margin: 0 0 15px;
  color: #f3f7fa;
  text-shadow: 0 2px 25px rgba(0,0,0,.2);
}

.pd .pd-window-caption p {
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
  color: #b2c6d6;
}

.pd-motion {
  position: absolute;
  z-index: 2;
  right: 28px;
  bottom: 58px;
  padding: 9px 12px;
  border: 1px solid rgba(172,201,223,.24);
  border-radius: 5px;
  background: rgba(7,14,26,.65);
  color: #b3c8d7;
  font-size: 10px !important;
}

.pd-motion:hover {
  background: #152332;
  color: #e9f8ff;
}

.pd-console {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.95fr) minmax(280px, 1fr);
  gap: 20px;
  max-width: 1356px;
  margin: -22px auto 0;
  padding: 0 28px;
}

.pd-terminal, .pd-journal {
  border: 1px solid var(--pd-line);
  border-radius: 10px;
  background: rgba(12,22,33,.97);
  box-shadow: 0 15px 70px rgba(0,0,0,.19);
}

.pd-terminal {
  padding: 25px;
}

.pd-panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.pd-lights {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pd-lights i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #526275;
}

.pd-lights i:first-child {
  background: var(--pd-cyan);
  box-shadow: 0 0 7px rgba(146,223,236,.4);
  animation: pd-led 7s ease-in-out infinite;
}

.pd-lights i:nth-child(2) {
  background: var(--pd-amber);
}

.pd-command {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 18px 0 22px;
  font: 19px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace;
  color: #d2e5ed;
}

.pd-prompt {
  color: var(--pd-cyan);
  font-size: 29px;
  line-height: 1;
}

.pd-cursor {
  display: inline-block;
  width: 7px;
  height: 17px;
  background: #a1dbe7;
  margin-left: 9px;
  vertical-align: -2px;
  animation: pd-cursor 2.4s ease-in-out infinite;
}

.pd-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 21px;
  border: 1px solid rgba(162,224,232,.5);
  border-radius: 7px;
  background: linear-gradient(110deg, #b3e5ec, #86c7d2);
  color: #0b2831 !important;
  transition: box-shadow .2s, transform .2s, filter .2s;
}

.pd-primary small {
  display: block;
  margin-bottom: 5px;
  color: #315965;
  font: 9px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .17em;
}

.pd-primary strong {
  display: block;
  font-size: 17px;
  font-weight: 620;
  line-height: 1.4;
}

.pd-primary svg {
  width: 29px;
  height: 29px;
}

.pd-primary:hover {
  box-shadow: 0 0 25px rgba(126,214,231,.13);
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.pd-shortcuts {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
  margin-top: 15px;
}

.pd-shortcut {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 15px 12px 14px;
  border: 1px solid var(--pd-line);
  border-radius: 7px;
  background: rgba(5,13,24,.35);
  transition: background .2s, border-color .2s;
}

.pd-shortcut:hover {
  background: #142635;
  border-color: rgba(158,220,229,.4);
}

.pd-shortcut-no {
  color: #5f7a8c;
  font: 10px ui-monospace, SFMono-Regular, Consolas, monospace;
  margin-bottom: 15px;
}

.pd-shortcut strong {
  font-size: 13px;
  font-weight: 550;
  line-height: 1.45;
  margin-bottom: 5px;
}

.pd-shortcut small {
  color: #90a7b9;
  font-size: 11px;
  line-height: 1.55;
}

.pd-shortcut em {
  display: block;
  font-size: 9px;
  color: #839cb0;
  font-style: normal;
  margin-top: 6px;
}

.pd-shortcut-arrow {
  position: absolute;
  top: 10px;
  right: 11px;
  font-size: 15px;
  color: #719bab;
}

.pd-search {
  margin-top: 22px;
}

.pd-search label {
  display: block;
  color: #8aa6b9;
  font: 9px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .15em;
  margin-bottom: 9px;
}

.pd-search-row {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--pd-line);
  border-radius: 6px;
  padding: 5px 6px 5px 12px;
  background: #09131f;
}

.pd-search-row svg {
  width: 18px;
  height: 18px;
  color: #819fb0;
}

.pd-search-row input {
  width: 100%;
  min-width: 0;
  height: 39px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #e0edf5;
  font-size: 12px;
  outline-offset: 0;
}

.pd-search-row input::placeholder {
  color: #8299ab;
  opacity: 1;
}

.pd-search-row button {
  flex-shrink: 0;
  min-height: 39px;
  border: 1px solid var(--pd-line);
  border-radius: 4px;
  background: #162937;
  color: #b9dbe5;
  font-size: 12px;
  padding: 7px 13px;
}

.pd-search-row button:hover {
  background: #203a48;
}

.pd-search-row button span {
  margin-left: 7px;
}

.pd-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.pd-journal {
  padding: 25px;
  flex-grow: 1;
}

.pd-amber-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #dfb16e;
  box-shadow: 0 0 10px rgba(238,180,85,.25);
}

.pd .pd-journal h2 {
  font-size: 21px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -.02em;
  margin: 20px 0 8px;
  color: #e4eef5;
}

.pd .pd-journal p {
  font-size: 12px;
  color: #9eafc0;
  line-height: 1.7;
  margin: 0 0 19px;
}

.pd-journal textarea {
  width: 100%;
  display: block;
  resize: vertical;
  min-height: 99px;
  max-height: 340px;
  padding: 12px 14px;
  border: 1px solid rgba(220,171,114,.2);
  border-radius: 6px;
  background: #0b1520;
  color: #e5d3bb;
  font: 12px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.pd-journal textarea::placeholder {
  color: #8195a4;
  opacity: 1;
}

.pd-note-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 11px 0 7px;
  font-size: 10px;
  color: #9baeba;
}

.pd-note-actions button {
  background: none;
  border: 0;
  color: #abbac8;
  font-size: 10px;
  min-height: 28px;
  padding: 4px 0 4px 10px;
}

.pd-note-actions button:hover {
  color: #ffe1b8;
}

.pd-note-hint {
  display: block;
  color: #8da1b2;
  font-size: 9px;
}

.pd-archive {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--pd-line);
  border-radius: 9px;
  padding: 20px;
  background: #0d1722;
  transition: background .2s, border-color .2s;
}

.pd-archive:hover {
  background: #152432;
  border-color: rgba(225,186,137,.35);
}

.pd-archive-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 7px;
  background: rgba(209,166,104,.08);
  color: #cca66d;
  flex-shrink: 0;
}

.pd-archive > span:nth-child(2) {
  flex-grow: 1;
}

.pd-archive > span:last-child {
  color: #b2a18b;
}

.pd-archive small {
  display: block;
  font: 8px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .13em;
  color: #b69b77;
}

.pd-archive strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin: 5px 0;
}

.pd-archive em {
  display: block;
  font-size: 10px;
  font-style: normal;
  color: #8fa4b6;
}

.pd-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 32px 20px 29px;
  font: 9px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
  color: #748b9e;
  letter-spacing: .16em;
}

.pd-footer-dash {
  height: 1px;
  width: 34px;
  background: #455b70;
}

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

.pd[data-motion="off"] .pd-vista img, .pd[data-motion="off"] .pd-atmosphere, .pd[data-motion="off"] .pd-starfield, .pd[data-motion="off"] .pd-led, .pd[data-motion="off"] .pd-lights i, .pd[data-motion="off"] .pd-cursor {
  animation-play-state: paused;
}

@keyframes pd-drift {
  from {
    transform: scale(1.045) translate3d(-.7%,.3%,0);
  }
  to {
    transform: scale(1.115) translate3d(1%,-1%,0);
  }
}

@keyframes pd-haze {
  from {
    transform: translate3d(-7%,4%,0) rotate(-3deg);
    opacity: .4;
  }
  to {
    transform: translate3d(7%,-4%,0) rotate(3deg);
    opacity: 1;
  }
}

@keyframes pd-stars {
  from {
    opacity: .2;
    transform: translate3d(-5px,5px,0);
  }
  to {
    opacity: .85;
    transform: translate3d(18px,-11px,0);
  }
}

@keyframes pd-led {
  0%,100% {
    opacity: .55;
  }
  50% {
    opacity: 1;
  }
}

@keyframes pd-cursor {
  0%,100% {
    opacity: .25;
  }
  50% {
    opacity: .9;
  }
}

@media (max-width: 1000px) {
  .pd-console {
    grid-template-columns: minmax(0,1.55fr) minmax(265px,1fr);
    gap: 14px;
    padding: 0 20px;
  }
  .pd-terminal, .pd-journal {
    padding: 20px;
  }
  .pd-primary {
    padding: 17px;
  }
  .pd-primary strong {
    font-size: 15px;
  }
  .pd-shortcuts {
    gap: 7px;
  }
  .pd-shortcut {
    padding: 13px 10px;
  }
  .pd-shortcut strong {
    font-size: 12px;
  }
  .pd-shortcut small {
    font-size: 10px;
  }
  .pd-archive {
    padding: 16px;
    gap: 10px;
  }
}

@media (max-width: 800px) {
  .pd-console {
    grid-template-columns: minmax(0,1fr);
    max-width: 700px;
    gap: 17px;
  }
  .pd-side {
    display: grid;
    grid-template-columns: minmax(0,1fr);
  }
  .pd-window {
    height: 420px;
  }
  .pd-journal textarea {
    min-height: 95px;
  }
  .pd-window-caption {
    bottom: 53px;
  }
}

@media (max-width: 640px) {
  .pd-topline {
    min-height: 65px;
    padding: 14px 19px;
    gap: 12px;
  }
  .pd-brand {
    font-size: 10px;
    gap: 10px;
    letter-spacing: .13em;
  }
  .pd-brand small {
    font-size: 8px;
    letter-spacing: .1em;
  }
  .pd-emblem {
    font-size: 28px;
  }
  .pd-instruments {
    font-size: 8px;
    gap: 7px;
  }
  .pd-instruments > span:nth-child(2) {
    display: none;
  }
  .pd-clock {
    padding-left: 0;
    margin-left: 0;
    border: 0;
    min-width: 0;
    font-size: 9px;
    letter-spacing: 0;
  }
  .pd-window {
    height: 460px;
  }
  .pd .pd-vista img {
    object-position: center 31%;
  }
  .pd-window:after {
    background: linear-gradient(180deg,rgba(4,10,20,.1), rgba(5,11,21,.04) 37%, rgba(5,11,21,.7) 70%, rgba(5,11,21,.98));
  }
  .pd-window-label {
    top: 22px;
    left: 20px;
    right: 20px;
    font-size: 8px;
    letter-spacing: .16em;
  }
  .pd-window-line {
    width: 45px;
  }
  .pd-window-caption {
    left: 20px;
    right: 20px;
    bottom: 70px;
  }
  .pd-window-caption .pd-eyebrow {
    font-size: 9px;
    margin-bottom: 13px;
    letter-spacing: .14em;
  }
  .pd .pd-window-caption h1 {
    font-size: 35px;
    line-height: 1.1;
    margin-bottom: 13px;
  }
  .pd .pd-window-caption p {
    font-size: 13px;
    line-height: 1.65;
  }
  .pd-motion {
    bottom: 29px;
    right: 20px;
    font-size: 9px !important;
    padding: 7px 10px;
  }
  .pd-console {
    margin-top: -13px;
    padding: 0 12px;
    gap: 13px;
  }
  .pd-terminal, .pd-journal {
    padding: 20px 17px;
    border-radius: 9px;
  }
  .pd .pd-eyebrow {
    font-size: 9px;
  }
  .pd-command {
    margin: 17px 0 18px;
    font-size: 17px;
    gap: 9px;
  }
  .pd-primary {
    padding: 16px;
    gap: 12px;
    min-height: 89px;
  }
  .pd-primary strong {
    font-size: 16px;
    max-width: 230px;
  }
  .pd-primary small {
    font-size: 8px;
  }
  .pd-primary svg {
    width: 23px;
    height: 23px;
  }
  .pd-shortcuts {
    grid-template-columns: minmax(0,1fr);
    gap: 8px;
    margin-top: 12px;
  }
  .pd-shortcut {
    padding: 15px 36px 15px 48px;
    min-height: 75px;
  }
  .pd-shortcut-no {
    position: absolute;
    left: 16px;
    top: 19px;
    margin: 0;
    font-size: 10px;
  }
  .pd-shortcut strong {
    font-size: 14px;
    margin-bottom: 3px;
  }
  .pd-shortcut small {
    font-size: 11px;
  }
  .pd-shortcut em {
    display: block;
    margin: 4px 0 0;
    font-size: 9px;
  }
  .pd-shortcut-arrow {
    top: 23px;
    right: 16px;
  }
  .pd-search {
    margin-top: 20px;
  }
  .pd-search-row {
    gap: 8px;
    padding-left: 10px;
  }
  .pd-search-row input {
    font-size: 16px;
    height: 39px;
  }
  .pd-search-row input::placeholder {
    font-size: 11px;
  }
  .pd-search-row button {
    padding: 6px 10px;
    font-size: 11px;
    min-height: 42px;
  }
  .pd-search-row button span {
    margin-left: 4px;
  }
  .pd .pd-journal h2 {
    margin-top: 16px;
    font-size: 21px;
  }
  .pd-journal textarea {
    font-size: 16px;
    min-height: 130px;
  }
  .pd-journal textarea::placeholder {
    font-size: 12px;
  }
  .pd-note-actions {
    font-size: 11px;
  }
  .pd-note-actions button {
    font-size: 12px;
    min-height: 44px;
  }
  .pd-note-hint {
    font-size: 10px;
  }
  .pd-archive {
    padding: 20px 17px;
    min-height: 100px;
  }
  .pd-archive small {
    font-size: 8px;
  }
  .pd-archive strong {
    font-size: 15px;
  }
  .pd-archive em {
    font-size: 11px;
  }
  .pd-footer {
    font-size: 8px;
    gap: 9px;
    letter-spacing: .1em;
    padding: 25px 12px;
  }
  .pd-footer-dash {
    width: 18px;
  }
}

@media (max-width: 360px) {
  .pd .pd-window-caption h1 {
    font-size: 30px;
  }
  .pd-brand {
    font-size: 9px;
  }
  .pd-clock {
    font-size: 8px;
  }
  .pd-primary strong {
    font-size: 15px;
  }
  .pd-shortcut em {
    display: block;
    margin: 4px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pd:not([data-motion="on"]) .pd-vista img, .pd:not([data-motion="on"]) .pd-atmosphere, .pd:not([data-motion="on"]) .pd-starfield, .pd:not([data-motion="on"]) .pd-led, .pd:not([data-motion="on"]) .pd-lights i, .pd:not([data-motion="on"]) .pd-cursor {
    animation: none;
  }
  .pd a {
    transition: none;
  }
}

/* Phoenix deck: append to Flarum Custom CSS. */

.Pages[data-slug="observation-deck"] .Pages-container,
.Pages[data-slug="observation-deck"] .Post-body {
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible;
  white-space: normal;
  overflow-wrap: normal;
}

.pd .pd-window {
  height: 33vw;
  min-height: 390px;
  max-height: 570px;
}

.pd .pd-window-caption h1 {
  font-size: 56px;
}

.pd .pd-vista img {
  border-radius: 0 !important;
}

.pd a {
  font-weight: 400;
}

.pd a.pd-brand {
  font-weight: 650;
  border: 0;
  border-radius: 0 !important;
  overflow: visible !important;
}

.pd a.pd-primary {
  border: 1px solid rgba(162,224,232,.5);
  border-radius: 7px !important;
}

.pd a.pd-shortcut {
  border: 1px solid var(--pd-line);
  border-radius: 7px !important;
}

.pd a.pd-shortcut:hover {
  border-color: rgba(158,220,229,.4);
}

.pd a.pd-archive {
  border: 1px solid var(--pd-line);
  border-radius: 9px !important;
}

.pd a.pd-archive:hover {
  border-color: rgba(225,186,137,.35);
}

@media (min-width: 1356px) {
  .pd .pd-topline {
    padding-left: calc(50% - 650px);
    padding-right: calc(50% - 650px);
  }
  .pd .pd-window-caption,
  .pd .pd-window-label {
    left: calc(50% - 650px);
    right: calc(50% - 650px);
  }
  .pd .pd-motion {
    right: calc(50% - 650px);
  }
}

@media (min-width: 776px) and (max-width: 1399px) {
  .pd .pd-window-caption h1 {
    font-size: 4vw;
  }
}

@media (max-width: 775px) {
  .pd .pd-window-caption h1 {
    font-size: 31px;
  }
}

@media (max-width: 800px) {
  .pd .pd-window {
    height: 420px;
  }
}

@media (max-width: 640px) {
  .pd .pd-window {
    height: 460px;
  }
  .pd .pd-window-caption h1 {
    font-size: 35px;
  }
}

@media (max-width: 360px) {
  .pd .pd-window-caption h1 {
    font-size: 30px;
  }
}

/* Phoenix deck: footer colours only while the deck is open. */

html:has(.Pages[data-slug="observation-deck"]),
body:has(.Pages[data-slug="observation-deck"]),
body:has(.Pages[data-slug="observation-deck"]) .App,
body:has(.Pages[data-slug="observation-deck"]) .App-content {
  background: #070d16;
}

body:has(.Pages[data-slug="observation-deck"]) #phoenix-footer,
body:has(.Pages[data-slug="observation-deck"]) .forum-footer {
  background: #070d16;
  color: #a8bccb;
}

body:has(.Pages[data-slug="observation-deck"]) .forum-footer {
  opacity: 1;
  border-top-color: rgba(170,205,225,.12);
}

body:has(.Pages[data-slug="observation-deck"]) #phoenix-footer a,
body:has(.Pages[data-slug="observation-deck"]) .forum-footer a {
  color: #8fc2d1;
}

body:has(.Pages[data-slug="observation-deck"]) #phoenix-footer a:hover,
body:has(.Pages[data-slug="observation-deck"]) .forum-footer a:hover {
  color: #cff4fa;
}

body:has(.Pages[data-slug="observation-deck"]) .footer-copy {
  color: #748b9e;
  opacity: 1;
}

/* FENIX v2: video inside the existing deck window. */
.pd .pd-vista--video > picture { display: block; width: 100%; height: 100%; }
.pd .pd-vista--video img { animation: none; transform: scale(1.04); }
.pd .pd-background-video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; margin: 0; border: 0; border-radius: 0 !important; object-fit: cover; object-position: center 10%; transform: scale(1.04); opacity: 0; pointer-events: none; }
.pd .pd-background-video[data-frame-ready] { opacity: 1; }
@media (max-width: 767px) { .pd .pd-background-video { object-position: center 31%; } }
