/* Auto-generated from PPTX theme — edit to customise */

/* --- Self-hosted Open Sans --- */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/OpenSans-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/OpenSans-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/OpenSans-700.woff2') format('woff2');
}

:root {
  --theme-dk1: #000000;
  --theme-lt1: #FFFFFF;
  --theme-dk2: #0E2841;
  --theme-lt2: #E8E8E8;
  --theme-accent1: #156082;
  --theme-accent2: #E97132;
  --theme-accent3: #196B24;
  --theme-accent4: #0F9ED5;
  --theme-accent5: #A02B93;
  --theme-accent6: #4EA72E;
  --theme-hlink: #467886;
  --theme-folHlink: #96607D;
  --font-major: "Open Sans", Arial, sans-serif;
  --font-minor: "Open Sans", Arial, sans-serif;
}

/* --- Slide layout & component styles --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: #F0F0F0;
  overflow-y: auto;
}

.page-wrapper {
  max-width: 1024px;
  margin: 0 auto;
  background: #FFFFFF;
  min-height: 100vh;
}

.slide-layout {
  display: flex;
}

#slide-menu {
  width: 256px;
  flex-shrink: 0;
  background: #F8F8F8;
  border-right: 1px solid #E0E0E0;
  overflow-y: auto;
  height: calc(100vh - 40px);
  position: sticky;
  top: 40px;
  padding: 0;
}

.nav-separator {
  margin: 0 1rem;
  border: none;
  height: 1px;
  background-color: #E0E0E0;
}

#slide-content {
  flex: 1;
  min-width: 0;
  max-width: 768px;
  color: var(--theme-dk1, #000000);
}

/* --- Navigation panel --- */
.nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #E0E0E0;
}

.nav-deck-title {
  font-family: var(--font-minor);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--theme-dk1);
}

#nav-close {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--theme-dk1);
  padding: 0 0.25rem;
}

/* --- Navigation panel --- */
.nav-list {
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
}

.nav-item a {
  display: block;
  padding: 0.35rem 1rem;
  font-family: var(--font-minor);
  font-size: 0.8rem;
  color: var(--theme-dk1);
  text-decoration: none;
  line-height: 1.4;
}

.nav-item a:hover {
  background: #EEEEEE;
}

.nav-level-1 a { padding-left: 1.5rem; }
.nav-level-2 a { padding-left: 2.25rem; font-size: 0.75rem; }

.nav-active a {
  font-weight: 700;
  color: var(--theme-hlink);
}

/* --- Hamburger (mobile only) --- */
#nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 0.5rem;
  line-height: 40px;
}

@media (max-width: 1023px) {
  .slide-layout {
    display: block;
  }

  #slide-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100dvh;
    max-height: 100dvh;
    z-index: 9999;
    transition: left 0.3s ease;
    border-right: 1px solid #E0E0E0;
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
    padding-bottom: 2rem;
  }

  #slide-menu.open {
    left: 0;
  }

  #nav-hamburger {
    display: block;
  }

  #nav-close {
    display: block;
  }

  #slide-content {
    max-width: 100%;
  }
}

/* --- Header component --- */
.slide-header-bar {
  width: 100%;
  height: 40px;
  position: sticky;
  top: 0;
  z-index: 100;
}

h1 {
  font-family: var(--font-minor);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--theme-dk1, #000000);
  padding: 0.75rem 0rem 0.5rem;
  margin: 0 1.5rem 1rem;
  border-bottom: 2px solid lightgrey;
}

/* --- Transcript components --- */
.transcript-container {
  padding: 0 1.5rem 1rem;
}

.transcript-label {
  font-family: var(--font-minor);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1.25rem 0 0.4rem;
  padding: 0;
}

.transcript-block {
  background: #FFFFFF;
  border-left: 3px solid var(--theme-lt2, #E8E8E8);
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  border-radius: 2px;
}

.transcript-block p {
  font-family: var(--font-minor);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--theme-dk1, #000000);
  margin: 0 0 0.5rem;
}

.transcript-block p:last-child {
  margin-bottom: 0;
}

.nav-back {
  font-family: var(--font-minor);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--theme-hlink, #467886);
  text-decoration: none;
}

.nav-back:hover {
  text-decoration: underline;
}

/* --- YouTube embed --- */
.youtube-container {
  padding: 0 1.5rem 1.5rem;
}

.youtube-container iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
}

/* --- Information page --- */
.info-container {
  padding: 0 1.5rem 1.5rem;
}

.info-container p {
  font-family: var(--font-minor);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--theme-dk1, #000000);
  margin: 0 0 0.75rem;
}

.info-container a {
  color: var(--theme-hlink);
  text-decoration: underline;
}

.info-container .cta-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.info-container h2 {
  font-family: var(--font-minor);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1.5rem 0 0.4rem;
}

.info-container .credits {
  font-size: 0.9rem;
  margin: 0.2rem 0;
}

.info-container .logo-bar {
  margin-top: 1.5rem;
}

.info-container .logo-bar img {
  max-height: 60px;
  width: auto;
}

/* --- Illustrative media components --- */
.illustration {
  max-width: 100%;
  height: auto;
  margin-top: 1rem;
  border-radius: 4px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.illustration-video {
  max-width: 100%;
  margin-top: 1rem;
  border-radius: 4px;
}

/* --- Sub-theme overview --- */
.subtheme-container {
  padding: 0 1.5rem 1.5rem;
}

.subtheme-container p {
  font-family: var(--font-minor);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--theme-dk1, #000000);
  margin: 0 0 1rem;
}

.subtheme-links {
  list-style: disc;
  padding: 0 0 0 1.5rem;
  margin: 1rem 0;
}

.subtheme-links li {
  font-family: var(--font-minor);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.6rem;
}

.subtheme-links a {
  font-family: var(--font-minor);
  font-size: 1rem;
  font-weight: 600;
  color: var(--theme-hlink);
  text-decoration: none;
}

.subtheme-links a:hover {
  text-decoration: underline;
}

/* --- Audio content page --- */
.audio-content-container {
  padding: 0 1.5rem 1.5rem;
}

.audio-content-container p {
  font-family: var(--font-minor);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--theme-dk1, #000000);
  margin: 0 0 1rem;
}

.audio-content-container a {
  color: var(--theme-hlink);
  text-decoration: underline;
}

.audio-clips {
  margin: 1.25rem 0;
}

.audio-clip {
  margin-bottom: 1.25rem;
}

.audio-clip-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.3rem;
}

.audio-clip-avatar {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.audio-clip-row audio {
  flex: 1;
  min-width: 0;
  height: 40px;
}

.audio-clip-label {
  font-family: var(--font-minor);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.3rem;
}


/* --- Navigation (dual links) --- */
#slide-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 1.5rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--theme-hlink);
}

.nav-forward {
  font-family: var(--font-minor);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--theme-hlink, #467886);
  text-decoration: none;
}

.nav-forward:hover {
  text-decoration: underline;
}

/* --- Theme card grid --- */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
  padding: 0;
  max-width: 100%;
}

@media (min-width: 510px) {
  .theme-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, calc(33.333% - 1rem)));
  }
}

.theme-card {
  text-align: center;
  text-decoration: none;
  color: var(--theme-dk1, #000000);
  border: 2px solid var(--card-border-color, currentColor);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.theme-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  flex-shrink: 0;
}

.theme-card-label {
  font-family: var(--font-minor);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.6rem 0.5rem;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-border-color);
  color: #FFFFFF;
}

/* --- Resource links grid --- */
.resource-section {
  margin-bottom: 1.5rem;
}

.resource-section h2 {
  font-family: var(--font-minor);
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--theme-dk1);
}

.resource-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
}

.resource-logos a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 80px;
  padding: 0.5rem;
  background: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.resource-logos a:hover {
  border-color: var(--theme-hlink);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.resource-logos img {
  max-height: 56px;
  max-width: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* --- Logo bar (centred, larger logos) --- */
.resource-logos-centred {
  justify-content: center;
  padding: 1rem 1.5rem;
}

.resource-logos-centred a {
  width: 200px;
  height: 100px;
}

.resource-logos-centred img {
  max-height: 80px;
  max-width: 160px;
}

/* --- Transcript accordion --- */
.audio-transcript {
  margin-top: 0.4rem;
  border-left: 3px solid var(--theme-lt2, #E8E8E8);
  border-radius: 2px;
}

.audio-transcript summary {
  font-family: var(--font-minor);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--theme-hlink);
  cursor: pointer;
  padding: 0.3rem 0.75rem;
}

.audio-transcript summary:hover {
  text-decoration: none;
}

.audio-transcript p {
  font-family: var(--font-minor);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--theme-dk1);
  padding: 0.5rem 0.75rem;
  margin: 0;
}

/* --- Contents cards --- */
.contents-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 1rem 0;
}

.info-container .contents-card {
  text-decoration: none;
}

.contents-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border: 2px solid var(--card-border-color, currentColor);
  border-radius: 6px;
  font-family: var(--font-minor);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--theme-dk1);
  text-decoration: none;
  line-height: 1.5;
}

.contents-card::after {
  content: "\203A";
  font-size: 1.5rem;
  margin-left: 0.75rem;
  flex-shrink: 0;
  color: var(--card-border-color, currentColor);
}

.contents-card:hover {
  background: var(--card-border-color, currentColor);
  color: #FFFFFF;
}

.contents-card:hover::after {
  color: #FFFFFF;
}

/* --- Section heading --- */
.info-container .section-heading {
  margin-top: 2rem;
  font-family: var(--font-minor);
  font-size: 1.3rem;
  font-weight: 700;
}

#slide-footer .nav-contents {
  font-family: var(--font-minor);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--theme-hlink);
  text-decoration: none;
}

#slide-footer .nav-contents:hover {
  text-decoration: underline;
}

.resource-logos-centred > img {
  width: 200px;
  height: 100px;
  padding: 0.5rem;
  background: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  object-fit: contain;
}
