@font-face {
  font-family: 'Montserrat';
  src: url('fonts/Montserrat-Regular.ttf?v=2') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('fonts/Montserrat-Black.ttf?v=2') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  background: #2e4fa3;
  color: #ffffff;
  font-family: 'Montserrat', Arial, sans-serif;
}

.viewer-header {
  position: relative;
  z-index: 2;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 54px);
  border-bottom: 8px solid #ffd000;
  background: #2e4fa3;
  box-shadow: 0 8px 28px rgb(18 37 82 / 26%);
}

.viewer-brand {
  display: flex;
  flex-direction: column;
}

.viewer-brand strong {
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 900;
  text-transform: uppercase;
}

.viewer-brand span {
  margin-top: 3px;
  color: #cbeeff;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.viewer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.viewer-actions a,
.viewer-actions button {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  font: 900 0.72rem/1.2 'Montserrat', Arial, sans-serif;
  text-decoration: none;
  text-transform: uppercase;
}

.viewer-actions a:first-child {
  border-color: #f5821f;
  background: #f5821f;
}

.viewer-main {
  position: relative;
  flex: 1;
  min-height: calc(100vh - 86px);
  padding: 16px;
  background: #e9ebf1;
}

.viewer-main iframe {
  width: 100%;
  height: calc(100vh - 126px);
  display: block;
  border: 0;
  border-radius: 14px;
  background: #ffffff;
}

.viewer-fallback {
  margin: 10px 0 0;
  color: #183a86;
  font-size: 0.78rem;
  text-align: center;
}

.viewer-fallback a {
  color: #183a86;
  font-weight: 900;
}

@media (max-width: 700px) {
  .viewer-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .viewer-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .viewer-actions a,
  .viewer-actions button {
    flex: 1 1 110px;
    padding-inline: 10px;
  }

  .viewer-main {
    min-height: calc(100vh - 150px);
    padding: 9px;
  }

  .viewer-main iframe {
    height: calc(100vh - 210px);
    border-radius: 8px;
  }
}
