:root {
  --coral: #E8604C;
  --coral-strong: #d44f3c;
  --bg: #faf7f5;
  --card: #ffffff;
  --text: #1f2328;
  --muted: #5b646e;
  --line: #efdfdb;
  --shadow: 0 12px 30px rgba(232, 96, 76, 0.12);
}

* {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 100% 0%, rgba(232, 96, 76, 0.11), rgba(232, 96, 76, 0) 45%),
    radial-gradient(circle at 0% 25%, rgba(232, 96, 76, 0.08), rgba(232, 96, 76, 0) 50%),
    var(--bg);
}

.page {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 1.25rem 1rem 1.5rem;
}

.highlights {
  margin-top: 0;
  display: grid;
  gap: 0.8rem;
}

.highlight-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-decoration: none;
  color: #fff;
  border-radius: 1.1rem;
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.highlight-card-body {
  min-width: 0;
  flex: 1 1 auto;
}

.highlight-card-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  object-fit: contain;
}

.highlight-card-icon--cafe {
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.55);
}

.highlight-card:hover,
.highlight-card:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.highlight-card--cafe {
  background: linear-gradient(135deg, var(--coral), var(--coral-strong));
}

.highlight-card--arupark {
  background: #1a5fb4;
}

.highlight-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}

.highlight-badge--arupark {
  background: #f5a623;
  color: #1a3a63;
}

.highlight-card h2 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
  font-weight: 800;
}

.highlight-card p {
  margin: 0 0 0.6rem;
  font-size: 0.88rem;
  opacity: 0.92;
}

.highlight-cta {
  font-size: 0.85rem;
  font-weight: 700;
}

.series {
  margin-top: 1.2rem;
}

.section-title-wrap {
  margin: 0 0 0.8rem;
}

.section-title-wrap h2 {
  margin: 0;
  font-size: 1.23rem;
  letter-spacing: -0.01em;
}

.section-title-wrap p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.series-list {
  display: grid;
  gap: 0.8rem;
}

.series-card {
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--card);
  box-shadow: 0 7px 18px rgba(31, 35, 40, 0.05);
}

.series-toggle {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  padding: 0;
}

.series-top {
  display: grid;
  grid-template-columns: 102px 1fr auto;
  gap: 0.8rem;
  padding: 0.75rem;
  align-items: center;
}

.series-cover {
  width: 100%;
  height: 84px;
  object-fit: cover;
  border-radius: 0.7rem;
  border: 1px solid var(--line);
  background: #f0f0f0;
}

.series-meta {
  min-width: 0;
}

.series-meta h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.series-meta p {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.series-chevron {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--coral);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  transition: transform 180ms ease;
}

.series-card[data-open="true"] .series-chevron {
  transform: rotate(180deg);
}

.videos {
  margin: 0;
  padding: 0 0.75rem 0.75rem;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.videos[hidden] {
  display: none;
}

.video-item {
  border: 1px solid #f0ebe9;
  background: #fff9f7;
  border-radius: 0.8rem;
  overflow: hidden;
}

.video-item:hover,
.video-item:focus-within {
  border-color: rgba(232, 96, 76, 0.55);
}

.video-toggle,
.video-link {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  background: #fff9f7;
  color: var(--text);
  min-height: 2.7rem;
  padding: 0.65rem 0.8rem;
  border: 0;
  cursor: pointer;
  text-align: left;
  transition: background-color 170ms ease;
}

.video-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
}

.video-episode {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--coral-strong);
}

.video-title {
  font-size: 0.92rem;
  line-height: 1.3;
  font-weight: 600;
}

.video-toggle:hover,
.video-toggle:focus-visible,
.video-link:hover,
.video-link:focus-visible {
  background-color: #fff2ed;
  outline: none;
}

.video-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.video-chevron {
  color: var(--coral);
  font-size: 0.9rem;
  transition: transform 180ms ease;
}

.video-item[data-open="true"] .video-chevron {
  transform: rotate(180deg);
}

.video-panel {
  border-top: 1px solid #f0ebe9;
  padding: 0.6rem;
  display: grid;
  gap: 0.45rem;
  background: #fff;
}

.video-panel[hidden] {
  display: none;
}

.video-embed-wrap {
  width: 100%;
  border-radius: 0.55rem;
  overflow: hidden;
  background: #000;
  display: flex;
  justify-content: center;
}

.video-embed {
  width: min(100%, 300px);
  aspect-ratio: 9 / 16;
  border: 0;
  display: block;
}

@media (min-width: 480px) {
  .video-embed {
    width: min(100%, 340px);
  }
}

@media (min-width: 768px) {
  .video-embed {
    width: min(100%, 390px);
  }
}

@media (min-width: 1200px) {
  .video-embed {
    width: min(100%, 440px);
  }
}

.video-item--soon {
  opacity: 0.6;
}

.video-link--disabled {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  background: #fff9f7;
  color: var(--muted);
  min-height: 2.7rem;
  padding: 0.65rem 0.8rem;
  cursor: default;
}

.video-platform--soon {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  background: #eee;
  border-radius: 999px;
  padding: 0.22rem 0.48rem;
  white-space: nowrap;
}

.video-page-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  background: #fff7f4;
  border: none;
  border-top: 1px solid #f0ebe9;
  padding: 0.62rem 0.8rem;
  text-align: left;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
  transition: background-color 170ms ease, color 170ms ease;
}

.video-page-btn:hover,
.video-page-btn:focus-visible {
  background-color: #ffe9e2;
  outline: none;
}

.video-page-btn-left {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.video-page-btn-badge {
  display: inline-grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 0.4rem;
  background: var(--coral);
  color: #fff;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.video-page-btn-main {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.2;
}

.video-page-btn-title {
  font-size: 0.83rem;
  font-weight: 800;
  color: var(--coral-strong);
}

.video-page-btn-subtitle {
  font-size: 0.74rem;
  color: var(--muted);
}

.video-page-btn-arrow {
  color: var(--coral-strong);
  font-size: 0.95rem;
  font-weight: 700;
  flex-shrink: 0;
}

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

.series-grid-card {
  display: flex;
  flex-direction: column;
  overflow: clip;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--card);
  box-shadow: 0 7px 18px rgba(31, 35, 40, 0.05);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.series-grid-card:hover,
.series-grid-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--coral);
  box-shadow: 0 10px 24px rgba(232, 96, 76, 0.18);
  outline: none;
}

.series-grid-cover {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  background: #f0f0f0;
}

.series-grid-meta {
  min-width: 0;
  padding: 0.7rem 0.75rem 0.85rem;
}

.series-grid-meta h3 {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.3;
}

.series-grid-meta p {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.button-row {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}

.pill-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  text-decoration: none;
  color: var(--coral-strong);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 0.85rem 1rem;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 7px 18px rgba(31, 35, 40, 0.05);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.pill-btn:hover,
.pill-btn:focus-visible {
  transform: translateY(-2px);
  border-color: var(--coral);
  box-shadow: 0 10px 24px rgba(232, 96, 76, 0.18);
  outline: none;
}

.pill-btn-icon {
  width: 1.15rem;
  height: 1.15rem;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}

.eventos {
  margin-top: 1.2rem;
}

.eventos-highlights {
  display: grid;
  gap: 0.7rem;
}

.evento-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  text-decoration: none;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 0.7rem 0.9rem;
  box-shadow: 0 7px 18px rgba(31, 35, 40, 0.05);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.evento-card:hover,
.evento-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--coral);
  box-shadow: 0 10px 24px rgba(232, 96, 76, 0.18);
  outline: none;
}

.evento-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #f0f0f0;
  flex-shrink: 0;
}

.evento-icon--placeholder {
  display: grid;
  place-items: center;
  background: rgba(232, 96, 76, 0.12);
}

.evento-icon--placeholder svg {
  width: 1.3rem;
  height: 1.3rem;
  stroke: var(--coral-strong);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.evento-card--indefinido {
  opacity: 0.55;
}

.evento-meta {
  min-width: 0;
  flex: 1 1 auto;
}

.evento-meta h3 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.evento-meta p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.evento-status {
  flex-shrink: 0;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}

.evento-status--inscricoes-abertas {
  background: rgba(45, 158, 107, 0.14);
  color: #237a51;
}

.evento-status--em-breve {
  background: rgba(232, 96, 76, 0.12);
  color: var(--coral-strong);
}

.evento-status--encerrado {
  background: #eee;
  color: var(--muted);
}

.nav-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 0.85rem 1.1rem;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 7px 18px rgba(31, 35, 40, 0.05);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.nav-card:hover,
.nav-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--coral);
  box-shadow: 0 10px 24px rgba(232, 96, 76, 0.18);
  outline: none;
}

.nav-card-arrow {
  color: var(--coral);
  font-size: 1rem;
  flex-shrink: 0;
}

/* Modal de prompts */
.prompts-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(31, 35, 40, 0.6);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  backdrop-filter: blur(3px);
}

.prompts-modal[hidden] {
  display: none;
}

.prompts-modal-box {
  background: var(--bg);
  width: 100%;
  max-width: 760px;
  max-height: 88vh;
  border-radius: 1.25rem 1.25rem 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -12px 40px rgba(31, 35, 40, 0.18);
}

.prompts-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.prompts-modal-htitle {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.prompts-modal-close {
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: border-color 170ms ease, color 170ms ease;
}

.prompts-modal-close:hover,
.prompts-modal-close:focus-visible {
  border-color: var(--coral);
  color: var(--coral);
  outline: none;
}

.prompts-modal-body {
  overflow-y: auto;
  padding: 0.85rem 1rem 1.5rem;
  display: grid;
  gap: 1rem;
  max-height: calc(88vh - 70px);
  scrollbar-gutter: stable;
}

.prompt-block {
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--card);
  overflow: hidden;
}

.prompt-titulo {
  margin: 0;
  padding: 0.75rem 1rem 0.6rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}

.prompt-code-wrap {
  position: relative;
}

.prompt-copy-btn {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  background: var(--coral);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 170ms ease;
  z-index: 1;
}

.prompt-copy-btn:hover,
.prompt-copy-btn:focus-visible {
  background: var(--coral-strong);
  outline: none;
}

.prompt-copy-btn--ok {
  background: #2d9e6b;
}

.prompt-markdown {
  margin: 0;
  padding: 0.85rem 1rem;
  padding-right: 5rem;
  padding-bottom: 0.7rem;
  background: #fdf6f4;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.6;
}

.prompt-markdown--collapsed {
  max-height: 10.5rem;
  overflow: hidden;
  position: relative;
}

.prompt-markdown--collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3rem;
  background: linear-gradient(to bottom, rgba(253, 246, 244, 0), #fdf6f4 75%);
}

.prompt-expand-btn {
  width: 100%;
  border: none;
  border-top: 1px solid var(--line);
  background: #fff8f5;
  color: var(--coral-strong);
  padding: 0.55rem 0.8rem;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background-color 170ms ease;
}

.prompt-expand-btn:hover,
.prompt-expand-btn:focus-visible {
  background: #ffece6;
  outline: none;
}

.prompt-markdown p {
  margin: 0.35rem 0;
}

.prompt-markdown p:first-child {
  margin-top: 0;
}

.prompt-markdown p:last-child {
  margin-bottom: 0;
}

.prompt-markdown ul {
  margin: 0.45rem 0;
  padding-left: 1.2rem;
}

.prompt-markdown li {
  margin: 0.2rem 0;
}

.prompt-markdown strong {
  color: var(--coral-strong);
}

.prompt-markdown code {
  background: #f2ebe8;
  border-radius: 0.35rem;
  padding: 0.08rem 0.35rem;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 0.82em;
}

.prompt-markdown a {
  color: var(--coral-strong);
  font-weight: 700;
}

@media (min-width: 720px) {
  .prompts-modal {
    align-items: center;
    padding: 1.5rem;
  }

  .prompts-modal-box {
    border-radius: 1.25rem;
    max-height: 82vh;
  }

  .prompts-modal-body {
    max-height: calc(82vh - 70px);
  }
}

.no-script {
  margin: 0.8rem 0 0;
  color: #7a4f47;
  font-weight: 600;
}

.footer {
  margin-top: 1.3rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.84rem;
}

.footer-link {
  display: inline-block;
  margin-bottom: 0.4rem;
  color: var(--coral-strong);
  font-weight: 700;
  text-decoration: none;
}

.footer-link:hover,
.footer-link:focus-visible {
  text-decoration: underline;
  outline: none;
}

.copyright {
  margin: 0;
}

.share-btn {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--coral);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.1rem 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(232, 96, 76, 0.45);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.share-btn:hover,
.share-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(232, 96, 76, 0.55);
  outline: none;
}

.share-btn svg {
  width: 1.15rem;
  height: 1.15rem;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}

@media (min-width: 720px) {
  .page {
    padding: 2rem 1.2rem 1.8rem;
  }

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

  .series-top {
    grid-template-columns: 132px 1fr auto;
    padding: 0.9rem;
  }

  .series-cover {
    height: 95px;
  }

  .videos {
    padding: 0 0.9rem 0.9rem;
  }
}