.marko-presentation-viewer-page main#content { max-width: none; width: 100%; }

.marko-presentation-page {
  --mpv-navy: #102f49;
  --mpv-blue: #165582;
  --mpv-action: #1e79b7;
  --mpv-pale: #eef6fb;
  --mpv-soft: #f7fafc;
  --mpv-border: #c9dce9;
  --mpv-text: #111827;
  --mpv-muted: #46586a;
  --mpv-focus: #b46200;
  box-sizing: border-box;
  width: min(1120px, calc(100% - 40px));
  margin: 32px auto 48px;
  color: var(--mpv-text);
  font-family: Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

.marko-presentation-page *,
.marko-presentation-page *::before,
.marko-presentation-page *::after {
  box-sizing: border-box;
}

.marko-presentation-page p {
  margin: 0 0 1em;
}

.marko-presentation-page h1,
.marko-presentation-page h2 {
  color: var(--mpv-navy);
  font-weight: 750;
  letter-spacing: -0.025em;
}

.marko-presentation-page h1 {
  margin: 0 0 20px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
}

.marko-presentation-page h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.16;
}

.marko-presentation-page__eyebrow {
  margin: 0 0 10px !important;
  color: var(--mpv-blue);
  font-size: 13px !important;
  font-weight: 780;
  line-height: 1.35;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.marko-presentation-page__hero {
  padding: 28px 32px;
  border: 1px solid var(--mpv-border);
  border-left: 6px solid var(--mpv-blue);
  border-radius: 20px;
  background: var(--mpv-pale);
}

.marko-presentation-page__lead {
  color: var(--mpv-navy);
  max-width: 820px;
  font-size: 18px !important;
  line-height: 1.55;
}

.marko-presentation-page__hero-note {
  align-self: center;
  padding: 24px;
  border: 1px solid var(--mpv-border);
  border-radius: 16px;
  background: #fff;
}

.marko-presentation-page__note-title {
  margin-bottom: 10px !important;
  color: var(--mpv-navy);
  font-size: 21px !important;
  font-weight: 750;
  line-height: 1.28;
}

.marko-presentation-page__hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.marko-presentation-page__button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 2px solid var(--mpv-blue);
  border-radius: 10px;
  font-weight: 730;
  line-height: 1.3;
  text-align: center;
  text-decoration: none !important;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.marko-presentation-page__button--primary,
.marko-presentation-page__button--primary:visited {
  color: #fff !important;
  background: var(--mpv-blue);
}

.marko-presentation-page__button--primary:hover,
.marko-presentation-page__button--primary:active {
  color: #fff !important;
  border-color: var(--mpv-navy) !important;
  background: var(--mpv-navy) !important;
}

.marko-presentation-page__button--secondary,
.marko-presentation-page__button--secondary:visited {
  color: var(--mpv-navy) !important;
  background: #fff;
}

.marko-presentation-page__button--secondary:hover,
.marko-presentation-page__button--secondary:active {
  color: var(--mpv-navy) !important;
  background: #dfeef8 !important;
}

.marko-presentation-page a:focus-visible,
.marko-presentation-page button:focus-visible,
.marko-presentation-page input:focus-visible,
.marko-presentation-viewer__stage:focus-visible {
  outline: 3px solid var(--mpv-focus) !important;
  outline-offset: 3px !important;
}

.marko-presentation-page__text-link a,
.marko-presentation-page__text-link a:visited {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--mpv-blue) !important;
  font-weight: 700;
  text-decoration: underline !important;
  text-decoration-thickness: 1.5px !important;
  text-underline-offset: 0.16em !important;
}

.marko-presentation-page__text-link a:hover,
.marko-presentation-page__text-link a:active {
  color: var(--mpv-action) !important;
  text-decoration-thickness: 2px !important;
}

.marko-presentation-page__viewer-section,
.marko-presentation-page__next {
  padding: 28px 0;
}

.marko-presentation-page__viewer-section {
  border-bottom: 1px solid var(--mpv-border);
}

.marko-presentation-page__section-copy {
  width: min(100%, 820px);
}

.marko-presentation-viewer {
  margin-top: 0;
  overflow: hidden;
  border: 1px solid #24465f;
  border-radius: 18px;
  background: var(--mpv-navy);
  box-shadow: 0 20px 45px rgba(16, 47, 73, 0.16);
}

.marko-presentation-viewer__toolbar {
  display: flex;
  flex-wrap: wrap;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  color: #fff;
  background: var(--mpv-navy);
}

.marko-presentation-viewer__group {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.marko-presentation-viewer__control,
.marko-presentation-viewer__control:visited {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 9px;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.marko-presentation-viewer__control:hover,
.marko-presentation-viewer__control:active {
  border-color: #fff;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.18) !important;
}

.marko-presentation-viewer__control:disabled {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.12) !important;
  opacity: 0.45;
  cursor: not-allowed;
}

.marko-presentation-viewer__control--icon {
  padding: 0;
  font-size: 24px;
  line-height: 1;
}

.marko-presentation-viewer__page-field {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
}

.marko-presentation-viewer__page-field input {
  width: 54px;
  min-height: 44px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 7px;
  color: var(--mpv-navy);
  background: #fff;
  font: inherit;
  font-weight: 750;
  line-height: 1;
  text-align: center;
}

.marko-presentation-viewer__scale {
  min-width: 50px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.marko-presentation-viewer__stage {
  position: relative;
  display: flex;
  height: clamp(320px, 67vw, 780px);
  max-height: none;
  align-items: flex-start;
  justify-content: flex-start;
  overflow: auto;
  padding: clamp(16px, 3vw, 30px);
  background: #dfe7ed;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y;
}

.marko-presentation-viewer__canvas-wrap {
  display: block;
  width: 100%;
  min-height: 100%;
  flex-shrink: 0;
}

.marko-presentation-viewer__canvas {
  visibility: hidden;
  display: block;
  margin: 0 auto;
  max-width: none;
  height: auto;
  border: 0;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 47, 73, 0.24);
}

.marko-presentation-viewer__status {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(320px, calc(100% - 40px));
  margin: 0;
  padding: 14px 18px;
  transform: translate(-50%, -50%);
  border-radius: 10px;
  color: var(--mpv-navy);
  background: rgba(255, 255, 255, 0.96);
  font-weight: 700;
  text-align: center;
  box-shadow: 0 8px 24px rgba(16, 47, 73, 0.2);
}

.marko-presentation-viewer.is-ready .marko-presentation-viewer__status {
  display: none;
}

.marko-presentation-viewer.is-ready .marko-presentation-viewer__canvas { visibility: visible; }

.marko-presentation-viewer__error,
.marko-presentation-viewer__noscript {
  width: min(560px, calc(100% - 40px));
  margin: auto;
  padding: 24px;
  border-radius: 14px;
  color: var(--mpv-navy);
  background: #fff;
  text-align: center;
}

.marko-presentation-viewer__error[hidden] {
  display: none;
}

.marko-presentation-viewer__fallback-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.marko-presentation-viewer__fallback-actions a,
.marko-presentation-viewer__fallback-actions a:visited,
.marko-presentation-viewer__noscript a,
.marko-presentation-viewer__noscript a:visited {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border: 1px solid var(--mpv-blue);
  border-radius: 8px;
  color: var(--mpv-blue) !important;
  font-weight: 700;
  text-decoration: none !important;
}

.marko-presentation-viewer:fullscreen {
  display: flex;
  width: 100vw;
  height: 100vh;
  flex-direction: column;
  border: 0;
  border-radius: 0;
}

.marko-presentation-viewer:fullscreen .marko-presentation-viewer__stage {
  height: 0;
  min-height: 0;
  max-height: none;
  flex: 1 1 auto;
}

.marko-presentation-page__next-grid {
  display: grid !important;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.marko-presentation-page__next-grid a,
.marko-presentation-page__next-grid a:visited {
  display: flex;
  width: auto !important;
  min-width: 0;
  min-height: 126px;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
  border: 1px solid var(--mpv-border);
  border-radius: 14px;
  color: var(--mpv-navy) !important;
  background: #fff;
  text-decoration: none !important;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.marko-presentation-page__next-grid a:hover,
.marko-presentation-page__next-grid a:active {
  border-color: var(--mpv-action);
  color: var(--mpv-navy) !important;
  background: var(--mpv-pale) !important;
  transform: translateY(-2px);
}

.marko-presentation-page__next-grid strong {
  font-size: 20px;
  line-height: 1.3;
}

.marko-presentation-page__next-grid span {
  margin-top: 7px;
  color: var(--mpv-muted);
}

@media (max-width: 1040px) {
  .marko-presentation-viewer__toolbar {
    flex-wrap: wrap;
    justify-content: center;
  }

  .marko-presentation-viewer__group--pages {
    order: 1;
  }

  .marko-presentation-viewer__group--zoom {
    order: 2;
  }

  .marko-presentation-viewer__group--file {
    order: 3;
  }
}

@media (max-width: 900px) {
  .marko-presentation-page__hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .marko-presentation-page {
    width: min(100% - 32px, 1120px);
    font-size: 16px;
  }

  .marko-presentation-page__hero {
    padding: 24px 20px;
    border-left-width: 4px;
    border-radius: 16px;
  }

  .marko-presentation-page h1 {
    font-size: clamp(28px, 8vw, 36px);
  }

  .marko-presentation-page__hero-actions,
  .marko-presentation-page__hero-actions .marko-presentation-page__button {
    width: 100%;
  }

  .marko-presentation-viewer {
    margin-right: -8px;
    margin-left: -8px;
    border-radius: 14px;
  }

  .marko-presentation-viewer__toolbar {
    gap: 8px;
    padding: 9px 8px;
  }

  .marko-presentation-viewer__group {
    width: 100%;
    justify-content: center;
  }

  .marko-presentation-viewer__group--file .marko-presentation-viewer__control {
    flex: 1 1 0;
  }

  .marko-presentation-viewer__stage {
    height: clamp(210px, 70vw, 510px);
    padding: 12px;
  }

  .marko-presentation-page__next-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .marko-presentation-viewer__control-text { display: none; }

  .marko-presentation-viewer__page-field > span:first-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

.marko-presentation-page__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.marko-presentation-viewer [hidden] { display: none !important; }
.marko-presentation-viewer__noscript { margin: 20px auto; }

@media (max-width: 360px) {
  .marko-presentation-page {
    width: min(100% - 24px, 1120px);
  }

  .marko-presentation-page__hero {
    padding: 22px 16px;
  }

  .marko-presentation-viewer__control {
    padding-right: 9px;
    padding-left: 9px;
  }

  .marko-presentation-viewer__page-field {
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marko-presentation-page *,
  .marko-presentation-page *::before,
  .marko-presentation-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .marko-presentation-page__next-grid a:hover,
  .marko-presentation-page__next-grid a:active {
    transform: none;
  }
}
