:root {
  --hsu-red: #b0003a;
  --hsu-red-dark: #8d002f;
  --hsu-gold: #000000;
  --hsu-text: #404040;
  --hsu-light-gray: #f3f3f3;
  --hsu-border: #d7d7d7;
  --hsu-body-font-size: 0.80em;
  --hsu-title-scale: 1;
  --hsu-header-height: 72px;
  --hsu-footer-height: 62px;
  --hsu-logo-width: 76px;
}

html,
body {
  background: #ffffff;
}

.reveal {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--hsu-text);
}

.reveal .slides {
  text-align: left;
}

.reveal .slides section {
  box-sizing: border-box;
}

.reveal .slides section.hsu-slide {
  width: 100%;
  height: 100%;
  padding: 0;
  background: var(--hsu-light-gray);
  border: 1px solid var(--hsu-border);
  display: flex !important;
  flex-direction: column;
}

.hsu-header {
  height: var(--hsu-header-height);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 6px 15px 6px 28px;
  border-bottom: 5px solid var(--hsu-red);
  flex: 0 0 auto;
  position: relative;
}

.hsu-header h1,
.hsu-header h2 {
  margin: 0;
  color: var(--hsu-red);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.05;
  max-width: calc(100% - 180px);
}

.hsu-header h1 {
  font-size: 1.9em;
}

.hsu-header h2 {
  font-size: 1.55em;
}

.hsu-logo {
  width: var(--hsu-logo-width);
  height: auto;
  object-fit: contain;
  position: absolute;
  top: -15px;
  right: 15px;
}

.hsu-content,
.hsu-title-content {
  flex: 1 1 auto;
  min-height: 0;
  padding: 72px 96px 56px 96px;
  color: var(--hsu-gold);
}

.hsu-content {
  font-size: var(--hsu-body-font-size);
  line-height: 1.55;
}

.hsu-content.large-text {
  padding-top: 180px;
  font-size: 1.28em;
}

.hsu-content p,
.hsu-title-content p {
  margin: 0 0 1.2em 0;
}

.hsu-content ul {
  margin: 0.2em 0 0 1.2em;
}

.hsu-content li {
  margin: 0.45em 0;
}

.hsu-media-slide .hsu-content {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 40px;
  align-items: center;
}

.hsu-media-copy p:last-child {
  margin-bottom: 0;
}

.hsu-two-column-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.hsu-two-column-content > div > *:last-child {
  margin-bottom: 0;
}

.hsu-two-column-content .hsu-table {
  margin-top: 0.5rem;
}

.hsu-dual-figures {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  margin: 2rem 0;
}

.hsu-dual-figures .hsu-figure {
  text-align: center;
}

.hsu-dual-figures .hsu-figure figcaption {
  text-align: center;
}

.hsu-figure {
  margin: 0;
  background: transparent;
}

.hsu-figure img {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  margin-left: auto;
  border: none;
  background: transparent;
  box-shadow: none;
}

.hsu-figure figcaption {
  margin-top: 0.7em;
  font-size: 0.82em;
  color: #666666;
  text-align: right;
  background: transparent;
}

.hsu-media-slide .hsu-figure {
  width: 100%;
  max-width: 520px;
  margin-left: auto;
}

.hsu-media-slide .hsu-figure figcaption {
  text-align: left;
}

.hsu-centered-media .hsu-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.2em;
  background: var(--hsu-light-gray);
}

.hsu-centered-media .hsu-content p {
  max-width: 900px;
  margin: 0;
  background: transparent;
}

.hsu-centered-media .hsu-figure img {
  margin: 0 auto;
  max-width: 620px;
}

.hsu-centered-media .hsu-figure figcaption {
  text-align: center;
}

.hsu-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border: 1px solid var(--hsu-border);
}

.hsu-table th,
.hsu-table td {
  padding: 0.55em 0.85em;
  border: 1px solid var(--hsu-border);
  text-align: left;
}

.hsu-table th {
  background: #ece7e1;
  color: var(--hsu-red);
  font-weight: 600;
}

.hsu-table tbody tr:nth-child(even) {
  background: #f8f8f8;
}

.hsu-title-slide .hsu-title-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 110px 110px 72px 110px;
  color: var(--hsu-text);
}

.hsu-title-slide .hsu-title-logo {
  position: absolute;
  top: 44px;
  right: 72px;
  width: 340px;
  max-width: 32%;
  height: auto;
}

.hsu-title-slide .hsu-title-copy {
  max-width: min(1080px, calc(100% - 210px));
}

.hsu-title-slide .title {
  margin: 0 0 0.35em 0;
  color: var(--hsu-red);
  font-size: clamp(2em, 3.4vw, 2.55em);
  font-size: calc(clamp(2em, 3.4vw, 2.55em) * var(--hsu-title-scale));
  font-weight: 500;
  line-height: 1.04;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.hsu-title-slide .subtitle {
  color: #5a5a5a;
  font-size: 1.28em;
  margin-bottom: 0.7em;
}

.hsu-title-slide .occasion {
  color: #7a7a7a;
  font-size: 1.02em;
  margin: 0 0 2.4em 0;
}

.hsu-title-slide .speaker-block {
  max-width: 720px;
}

.hsu-title-slide .author {
  font-size: 1.22em;
  font-weight: 600;
  margin-bottom: 0.35em;
}

.hsu-title-slide .meta {
  font-size: 0.96em;
  color: #666666;
  margin-bottom: 0.25em;
}

.hsu-title-slide .university {
  white-space: nowrap;
}

.hsu-title-slide .institute {
  white-space: nowrap;
}

html[data-presentation-format="16:9"] .hsu-title-slide .hsu-title-content {
  padding: 92px 104px 58px 104px;
}

html[data-presentation-format="16:9"] .hsu-title-slide .hsu-title-logo {
  top: 38px;
  right: 64px;
  width: 310px;
  max-width: 30%;
}

html[data-presentation-format="16:9"] .hsu-title-slide .hsu-title-copy {
  max-width: min(1020px, calc(100% - 195px));
}

html[data-presentation-format="16:9"] .hsu-title-slide .title {
  font-size: calc(clamp(1.95em, 3.1vw, 2.3em) * var(--hsu-title-scale));
}

html[data-presentation-format="16:9"] .hsu-title-slide .subtitle {
  font-size: 1.2em;
  margin-bottom: 0.6em;
}

html[data-presentation-format="16:9"] .hsu-title-slide .occasion {
  font-size: 0.98em;
  margin-bottom: 2em;
}

html[data-presentation-format="16:9"] .hsu-title-slide .author {
  font-size: 1.16em;
}

html[data-presentation-format="16:9"] .hsu-title-slide .meta {
  font-size: 0.92em;
}

html[data-presentation-format="4:3"] .hsu-title-slide .hsu-title-content {
  padding: 84px 92px 52px 92px;
}

html[data-presentation-format="4:3"] .hsu-title-slide .hsu-title-logo {
  top: 34px;
  right: 56px;
  width: 280px;
  max-width: 30%;
}

html[data-presentation-format="4:3"] .hsu-title-slide .hsu-title-copy {
  max-width: min(900px, calc(100% - 190px));
}

html[data-presentation-format="4:3"] .hsu-title-slide .title {
  font-size: calc(clamp(1.85em, 2.9vw, 2.15em) * var(--hsu-title-scale));
}

html[data-presentation-format="4:3"] .hsu-title-slide .subtitle {
  font-size: 1.16em;
  margin-bottom: 0.55em;
}

html[data-presentation-format="4:3"] .hsu-title-slide .occasion {
  font-size: 0.94em;
  margin-bottom: 1.9em;
}

html[data-presentation-format="4:3"] .hsu-title-slide .author {
  font-size: 1.12em;
}

html[data-presentation-format="4:3"] .hsu-title-slide .meta {
  font-size: 0.88em;
}

.hsu-footnote {
  flex: 0 0 auto;
  padding: 0 96px 12px 96px;
  font-size: 0.68em;
  line-height: 1.35;
  color: #6b6b6b;
}

.hsu-footnote p {
  margin: 0;
}

.hsu-footnote a {
  color: inherit;
  text-decoration: underline;
}

.hsu-footer {
  height: var(--hsu-footer-height);
  background: var(--hsu-red);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  font-size: 0.8em;
  font-weight: 500;
  flex: 0 0 auto;
  position: relative;
}

.hsu-footer .footer-date {
  position: absolute;
  left: 28px;
}

.hsu-footer .footer-author {
  text-align: center;
}

.hsu-footer .slide-number {
  position: absolute;
  right: 28px;
  font-size: 1em;
}

.reveal .katex {
  font-size: 1em;
}

.reveal blockquote,
.reveal pre {
  box-shadow: none;
}

.reveal code {
  color: #3d3d3d;
}
