.client-presentation {
  --presentation-ink: #153e3b;
  --presentation-deep: #102e2c;
  --presentation-gold: #c4a273;
  --presentation-paper: #f6f5ef;
  --presentation-line: #d7e0d7;
  --presentation-muted: #6d7f76;
  color: var(--presentation-ink);
  min-width: 0;
}

.presentation-intro {
  display: flex;
  justify-content: space-between;
  gap: 36px;
  padding: 31px 34px 29px;
  background: linear-gradient(135deg, #153e3b, #1d514b);
  border-top: 4px solid var(--presentation-gold);
  color: #f9f7ef;
}

.presentation-kicker {
  margin: 0 0 8px;
  color: #d9bd91;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}

.presentation-intro h2 {
  margin: 0 0 10px;
  color: #fff;
  font-family: var(--serif, serif);
  font-size: 31px;
  font-weight: 600;
}

.presentation-summary {
  max-width: 680px;
  margin: 0;
  color: #d2dfd6;
  font-size: 13px;
  line-height: 1.95;
}

.presentation-meta {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 220px;
  margin: 0;
}

.presentation-meta div {
  padding: 0 0 13px;
  border-bottom: 1px solid #ffffff26;
}

.presentation-meta dt {
  color: #c4d1c7;
  font-size: 10px;
  letter-spacing: 1px;
}

.presentation-meta dd {
  margin: 4px 0 0;
  color: #fbf6e9;
  font-size: 12px;
  line-height: 1.65;
}

.presentation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 26px;
  margin-top: 28px;
}

.presentation-reader { min-width: 0; }

.presentation-viewer {
  background: var(--presentation-deep);
  border: 1px solid #29534d;
  box-shadow: 0 16px 38px #153e3b18;
  outline-offset: 6px;
}

.presentation-viewer:focus-visible { outline: 3px solid var(--presentation-gold); }

.presentation-stage {
  position: relative;
  display: grid;
  min-height: 360px;
  place-items: center;
  background: #0d2825;
}

.presentation-slide {
  width: 100%;
  margin: 0;
}

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

.presentation-slide img {
  width: 100%;
  max-height: min(70vh, 690px);
  object-fit: contain;
  background: #0d2825;
}

.presentation-slide figcaption {
  padding: 10px 16px;
  color: #dde8de;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.presentation-viewer-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 15px;
  border-top: 1px solid #ffffff20;
}

.presentation-large-link {
  color: #ead3a8;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.presentation-fullscreen {
  min-height: 44px;
  padding: 9px 13px;
  background: #ffffff10;
  border: 1px solid #ffffff45;
  color: #fff;
  font-size: 12px;
}

.presentation-fullscreen:hover { background: #ffffff1c; }

.presentation-viewer:fullscreen {
  width: 100%;
  height: 100%;
  padding: 22px;
  background: #081f1c;
}

.presentation-viewer:fullscreen .presentation-stage {
  min-height: 0;
  height: calc(100vh - 112px);
}

.presentation-viewer:fullscreen .presentation-slide img {
  max-height: calc(100vh - 152px);
}

.presentation-controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.presentation-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 44px;
  min-height: 44px;
  padding: 9px 12px;
  background: #edf2eb;
  border: 1px solid #cad8cd;
  color: var(--presentation-ink);
  font-size: 12px;
}

.presentation-nav:hover:not(:disabled) { background: #dfe9df; }

.presentation-nav:disabled {
  opacity: .42;
  cursor: not-allowed;
}

.presentation-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.presentation-page-button {
  width: 44px;
  min-height: 44px;
  padding: 0;
  background: #fff;
  border: 1px solid #cbd9ce;
  color: #45645a;
  font-size: 12px;
}

.presentation-page-button:hover,
.presentation-page-button.is-active {
  background: var(--presentation-ink);
  border-color: var(--presentation-ink);
  color: #fff;
}

.presentation-status {
  margin: 13px 0 0;
  color: var(--presentation-muted);
  font-size: 12px;
  text-align: center;
}

.presentation-static-list {
  margin-top: 24px;
  background: #fff;
  border: 1px solid var(--presentation-line);
}

.presentation-static-list summary {
  min-height: 48px;
  padding: 13px 17px;
  color: var(--presentation-ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.presentation-static-list ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin: 0;
  padding: 0 17px 18px;
  list-style: none;
}

.presentation-static-list a {
  display: block;
  min-width: 0;
  color: var(--presentation-ink);
  font-size: 11px;
  line-height: 1.55;
}

.presentation-static-list img {
  width: 100%;
  background: var(--presentation-paper);
  border: 1px solid #dce4dc;
}

.presentation-static-list span {
  display: block;
  margin-top: 7px;
}

.presentation-toc {
  align-self: start;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--presentation-line);
  border-top: 3px solid var(--presentation-gold);
}

.presentation-toc > p {
  margin: 0 0 7px;
  color: #9a8a6f;
  font-size: 9px;
  letter-spacing: 1.4px;
}

.presentation-toc h3 {
  margin: 0 0 14px;
  color: var(--presentation-ink);
  font-family: var(--serif, serif);
  font-size: 19px;
}

.presentation-toc ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.presentation-toc li { border-top: 1px solid #e7ece5; }

.presentation-toc a,
.presentation-toc li > span {
  display: flex;
  gap: 9px;
  padding: 10px 0;
  color: #5f766b;
  font-size: 11px;
  line-height: 1.55;
}

.presentation-toc a:hover { color: var(--presentation-ink); }

.presentation-toc span {
  flex: 0 0 22px;
  color: #a88d60;
  font-family: Georgia, serif;
}

.presentation-download-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 30px;
  padding: 25px 29px;
  background: #e8eee5;
  border: 1px solid #cfdbcc;
}

.presentation-download-panel small {
  color: #788b76;
  font-size: 9px;
  letter-spacing: 1.5px;
}

.presentation-download-panel h3 {
  margin: 6px 0 7px;
  color: var(--presentation-ink);
  font-family: var(--serif, serif);
  font-size: 22px;
}

.presentation-download-panel p {
  max-width: 590px;
  margin: 0;
  color: #6f8077;
  font-size: 12px;
  line-height: 1.75;
}

.presentation-download-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.presentation-download,
.presentation-open-pdf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--presentation-ink);
  font-size: 12px;
  font-weight: 600;
}

.presentation-download {
  background: #fff;
  color: var(--presentation-ink);
}

.presentation-download-primary {
  background: var(--presentation-ink);
  color: #fff;
}

.presentation-download span {
  margin-right: 7px;
  color: #d9bd91;
  font-size: 9px;
  letter-spacing: 1px;
}

.presentation-open-pdf {
  border-color: transparent;
  color: #3d5e52;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.presentation-download:hover {
  box-shadow: 0 4px 12px #153e3b14;
  transform: translateY(-1px);
}

.presentation-download-unavailable { display: block; }

.presentation-empty {
  padding: 32px;
  color: #72837a;
  text-align: center;
  background: #fff;
  border: 1px dashed #cbd8cb;
}

.presentation-source-note {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 34px;
  margin-top: 28px;
  padding: 28px 29px;
  background: #fff;
  border: 1px solid var(--presentation-line);
}

.presentation-source-note h3 {
  margin: 0 0 9px;
  color: var(--presentation-ink);
  font-family: var(--serif, serif);
  font-size: 21px;
}

.presentation-source-note p {
  margin: 0;
  color: #6b7d73;
  font-size: 12px;
  line-height: 1.9;
}

.presentation-source-note h4 {
  margin: 0 0 9px;
  color: var(--presentation-ink);
  font-size: 13px;
}

.presentation-source-note ul {
  margin: 0;
  padding-left: 19px;
}

.presentation-source-note li {
  margin: 6px 0;
  color: #71847a;
  font-size: 11px;
  line-height: 1.65;
}

.presentation-source-note a,
.presentation-byline a {
  color: #315b50;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.presentation-byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
  padding: 16px 0 0;
  color: #64776d;
  font-size: 11px;
  border-top: 1px solid #d4ded4;
}

.presentation-byline strong { color: var(--presentation-ink); }
.presentation-byline span { margin-right: auto; }

.presentation-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 25px;
  background: #153e3b;
  border-left: 4px solid #c4a273;
  color: #fff;
}

.presentation-promo small,
.presentation-promo strong,
.presentation-promo span { display: block; }

.presentation-promo small {
  color: #d9bd91;
  font-size: 9px;
  letter-spacing: 1.6px;
}

.presentation-promo strong {
  margin-top: 4px;
  font-family: var(--serif, serif);
  font-size: 19px;
  font-weight: 600;
}

.presentation-promo div > span {
  margin-top: 3px;
  color: #c7d6cc;
  font-size: 11px;
}

.presentation-promo > a {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #d9bd91;
  color: #f8e2bb;
  font-size: 12px;
  white-space: nowrap;
}

.presentation-promo > a:hover { background: #ffffff10; }

@media (max-width: 900px) {
  .presentation-grid { grid-template-columns: 1fr; }
  .presentation-toc { order: -1; }
  .presentation-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
  .presentation-download-panel { align-items: flex-start; flex-direction: column; }
  .presentation-download-actions { justify-content: flex-start; }
  .presentation-source-note { grid-template-columns: 1fr; }
  .presentation-byline span { flex-basis: 100%; margin-right: 0; }
}

@media (max-width: 640px) {
  .client-presentation { max-width: 100%; overflow: hidden; }
  .presentation-intro { display: block; padding: 24px 20px; }
  .presentation-intro h2 { font-size: 26px; }
  .presentation-summary { font-size: 12px; }
  .presentation-meta { grid-template-columns: 1fr 1fr; min-width: 0; margin-top: 21px; }
  .presentation-meta div { padding-bottom: 0; border-bottom: 0; }
  .presentation-stage { min-height: 180px; }
  .presentation-slide figcaption { font-size: 11px; }
  .presentation-viewer-tools { align-items: stretch; flex-direction: column; }
  .presentation-large-link { display: flex; align-items: center; min-height: 44px; }
  .presentation-fullscreen { width: 100%; }
  .presentation-controls { grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 6px; }
  .presentation-nav { padding: 0; }
  .presentation-nav span { display: none; }
  .presentation-pagination { gap: 4px; }
  .presentation-page-button { width: calc((100% - 20px) / 6); min-width: 38px; }
  .presentation-static-list ol { grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 12px 14px; }
  .presentation-toc { padding: 17px; }
  .presentation-toc ol { grid-template-columns: 1fr; }
  .presentation-download-panel { margin-top: 23px; padding: 21px 19px; }
  .presentation-download-actions { display: grid; width: 100%; grid-template-columns: 1fr; }
  .presentation-download,
  .presentation-open-pdf { width: 100%; }
  .presentation-source-note { gap: 23px; margin-top: 23px; padding: 22px 19px; }
  .presentation-byline { align-items: flex-start; flex-direction: column; gap: 8px; }
  .presentation-promo { align-items: flex-start; flex-direction: column; padding: 19px; }
  .presentation-promo > a { width: 100%; }
}

@media (max-width: 360px) {
  .presentation-page-button { width: calc((100% - 15px) / 4); }
}

@media (prefers-reduced-motion: reduce) {
  .presentation-download { transition: none; }
  .presentation-download:hover { transform: none; }
}

@media print {
  .presentation-controls,
  .presentation-viewer-tools,
  .presentation-static-list,
  .presentation-download-panel { display: none !important; }

  .presentation-grid { display: block; }
  .presentation-toc { display: none; }
  .presentation-viewer { border: 0; }
  .presentation-slide:not(.presentation-slide-active) { display: none !important; }
  .presentation-source-note { padding: 16px 0; border: 0; }
  .presentation-intro { padding: 0; background: #fff; border: 0; color: #000; }
  .presentation-intro h2,
  .presentation-meta dd { color: #000; }
  .presentation-summary,
  .presentation-meta dt { color: #333; }
}

/* Keep the long deck usable on narrow screens. */
.presentation-toc a { min-height: 44px; align-items: center; }
.presentation-promo-wrap { padding-top: 30px; padding-bottom: 30px; }
@media (max-width: 640px) {
  .presentation-page-button { width: 44px; min-width: 44px; }
}

@media (max-width: 900px) {
  .presentation-toc { order: 0; }
}
