@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Manrope:wght@600;700;800&display=swap");

:root {
  color-scheme: light;
  font-family: "DM Sans", Arial, sans-serif;
  color: #173a45;
  background: #edf4f5;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
}

.speaking-site {
  min-height: 100vh;
  padding: 1.4rem 1.25rem 3rem;
  background:
    radial-gradient(
      ellipse at 10% 0%,
      rgba(35, 123, 151, 0.1),
      transparent 28rem
    ),
    #edf4f5;
}

.speaking-topbar,
.speaking-sheet {
  width: min(1120px, 100%);
  margin-inline: auto;
}

.speaking-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.speaking-back,
.speaking-print {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.65rem 1rem;
  border: 1px solid #d5e3e5;
  border-radius: 12px;
  color: #36545b;
  background: rgba(255, 255, 255, 0.9);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.speaking-back:hover,
.speaking-print:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(27, 68, 72, 0.1);
}

.speaking-print {
  border-color: #166c7b;
  color: #fff;
  background: #166c7b;
}

.speaking-print:hover {
  background: #105865;
}

.speaking-back:focus-visible,
.speaking-print:focus-visible {
  outline: 3px solid #e8ab57;
  outline-offset: 3px;
}

.speaking-sheet {
  --set-accent: #1b7a89;
  --set-soft: #e7f3f5;
  --set-wash: #f0f8f9;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid #dce8e9;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(25, 55, 66, 0.11);
}

.speaking-sheet--experience {
  --set-accent: #a45e37;
  --set-soft: #f8eee7;
  --set-wash: #fcf7f2;
}

.speaking-sheet--discussion {
  --set-accent: #6656a5;
  --set-soft: #efedfa;
  --set-wash: #f8f7fd;
}

.speaking-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--set-accent);
}

.speaking-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.8rem;
  color: #38545b;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.speaking-brand-mark {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--set-accent);
  font:
    800 0.85rem Manrope,
    sans-serif;
}

.speaking-eyebrow {
  margin: 0 0 0.25rem;
  color: var(--set-accent);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.speaking-heading h1 {
  margin: 0;
  color: #183844;
  font:
    800 clamp(1.55rem, 3vw, 2.3rem)/1.1 Manrope,
    sans-serif;
  letter-spacing: -0.045em;
}

.speaking-subtitle {
  max-width: 44rem;
  margin: 0.45rem 0 0;
  color: #61777c;
  font-size: 0.92rem;
  line-height: 1.5;
}

.speaking-count {
  flex: 0 0 auto;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(27, 122, 137, 0.24);
  border-radius: 999px;
  color: var(--set-accent);
  background: var(--set-soft);
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.speaking-instructions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.9rem;
  color: #667b80;
  font-size: 0.8rem;
}

.speaking-instructions strong {
  color: #36565e;
}

.speaking-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.speaking-card {
  display: flex;
  min-width: 0;
  min-height: 168px;
  flex-direction: column;
  padding: 1rem 1.05rem;
  border: 1px solid #dce7e8;
  border-top: 3px solid var(--set-accent);
  border-radius: 15px;
  background: linear-gradient(145deg, #fff, var(--set-wash));
  box-shadow: 0 5px 14px rgba(28, 62, 67, 0.055);
  break-inside: avoid;
}

.speaking-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}

.speaking-card-number {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  place-items: center;
  border-radius: 8px;
  color: var(--set-accent);
  background: var(--set-soft);
  font-size: 0.67rem;
  font-weight: 850;
}

.speaking-card-label {
  color: #788b90;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-align: right;
  text-transform: uppercase;
}

.speaking-listen {
  align-self: flex-start;
  margin: 0 0 0.45rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid color-mix(in srgb, var(--set-accent) 28%, white);
  border-radius: 999px;
  color: var(--set-accent);
  background: var(--set-soft);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 850;
  cursor: pointer;
}

.speaking-listen:hover {
  filter: brightness(0.96);
}

.speaking-listen:focus-visible {
  outline: 3px solid #e8ab57;
  outline-offset: 2px;
}

.speaking-card-prompt {
  margin: 0;
  color: #1d3d47;
  font:
    800 1.04rem/1.35 Manrope,
    sans-serif;
  letter-spacing: -0.02em;
}

.speaking-card-followup {
  margin: auto 0 0;
  padding-top: 0.65rem;
  color: #647a80;
  font-size: 0.8rem;
  line-height: 1.45;
}

.speaking-card-followup strong {
  color: var(--set-accent);
  font-weight: 800;
}

@media (max-width: 820px) {
  .speaking-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .speaking-site {
    padding: 0.85rem 0.75rem 2rem;
  }

  .speaking-sheet {
    padding: 1.1rem;
    border-radius: 19px;
  }

  .speaking-heading {
    align-items: start;
    flex-direction: column;
    gap: 0.65rem;
  }

  .speaking-topbar {
    gap: 0.5rem;
  }

  .speaking-back,
  .speaking-print {
    min-height: 40px;
    padding: 0.55rem 0.7rem;
    font-size: 0.78rem;
  }

  .speaking-grid {
    grid-template-columns: 1fr;
  }

  .speaking-card {
    min-height: 145px;
  }
}

@page {
  size: A4 portrait;
  margin: 7mm;
}

@media print {
  :root,
  body,
  .speaking-site {
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    color: #173a45;
    background: #fff;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .speaking-topbar {
    display: none;
  }

  .speaking-listen {
    display: none;
  }

  .speaking-sheet {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .speaking-heading {
    margin-bottom: 2mm;
    padding-bottom: 2mm;
  }

  .speaking-brand {
    margin-bottom: 1.5mm;
    font-size: 6.5pt;
  }

  .speaking-brand-mark {
    width: 6mm;
    height: 6mm;
  }

  .speaking-eyebrow {
    font-size: 6pt;
  }

  .speaking-heading h1 {
    font-size: 17pt;
  }

  .speaking-subtitle {
    margin-top: 1mm;
    font-size: 7.5pt;
  }

  .speaking-count {
    padding: 1.5mm 2mm;
    font-size: 6.5pt;
  }

  .speaking-instructions {
    margin-bottom: 2mm;
    font-size: 7pt;
  }

  .speaking-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2mm;
  }

  .speaking-card {
    height: 37mm;
    min-height: 0;
    padding: 2.2mm 2.6mm;
    border-radius: 1.8mm;
    box-shadow: none;
  }

  .speaking-card-meta {
    margin-bottom: 1.5mm;
  }

  .speaking-card-number {
    width: 5mm;
    height: 5mm;
    flex-basis: 5mm;
    border-radius: 1.2mm;
    font-size: 6pt;
  }

  .speaking-card-label {
    font-size: 5.5pt;
  }

  .speaking-card-prompt {
    font-size: 9.5pt;
    line-height: 1.2;
  }

  .speaking-card-followup {
    padding-top: 1.4mm;
    font-size: 7pt;
    line-height: 1.25;
  }
}

@media (prefers-reduced-motion: reduce) {
  .speaking-back,
  .speaking-print {
    transition: none;
  }
}
