#section-05,
#section-06,
#section-07,
#section-08,
#section-09 {
  font-family: var(--font-primary);
}

.section-heading-media {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 28px;
}

.section-heading-image {
  display: block;
  width: min(100%, 760px);
  height: auto;
}

.section-title-fallback {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

/* Section 05 */
#section-05 {
  --kalshi-bg: #050913;
  --kalshi-card: #131b2d;
  --kalshi-card-hover: #18233a;
  --kalshi-border: rgba(153, 176, 216, 0.2);
  --kalshi-border-hover: rgba(153, 176, 216, 0.42);
  --kalshi-green: #04ba75;
  --kalshi-text-primary: #ffffff;
  --kalshi-text-secondary: rgba(255, 255, 255, 0.7);
  --kalshi-text-muted: rgba(255, 255, 255, 0.4);
  --bar-height: 6px;
  --bar-bg: rgba(255, 255, 255, 0.08);
}

#section-05 .section-heading-media--05 {
  margin-bottom: 32px;
}

#section-05 .section-heading-media--05 .section-heading-image {
  width: min(130%, 1456px);
  max-width: none;
  margin: 0 auto;
}

#section-05 .r5-shell {
  max-width: 1160px;
  margin: 0 auto;
}

#section-05 .r5-mockup {
  background: var(--kalshi-bg);
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

#section-05 .r5-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(153, 176, 216, 0.24);
}

#section-05 .r5-topbar-left,
#section-05 .r5-topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

#section-05 .r5-logo {
  color: var(--kalshi-green);
  font-weight: 800;
  font-size: 18px;
}

#section-05 .r5-nav-link {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.76);
  letter-spacing: 0.06em;
}

#section-05 .r5-live {
  display: inline-block;
  background: #d83b44;
  border-radius: 999px;
  padding: 1px 6px;
  font-size: 10px;
  margin-left: 4px;
  color: #fff;
}

#section-05 .r5-search {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(153, 176, 216, 0.28);
  color: var(--kalshi-text-muted);
  border-radius: 999px;
  padding: 7px 12px;
  min-width: 190px;
  font-size: 13px;
}

#section-05 .r5-btn {
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 12px;
  border: 1px solid transparent;
  cursor: pointer;
}

#section-05 .r5-btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  background: transparent;
}

#section-05 .r5-btn--solid {
  color: #fff;
  border-color: var(--kalshi-green);
  background: var(--kalshi-green);
}

#section-05 .r5-tabs {
  display: flex;
  align-items: center;
  gap: 20px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  scrollbar-width: thin;
}

#section-05 .r5-tab {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  padding: 0 0 10px;
  border-bottom: 2px solid transparent;
  flex: 0 0 auto;
  cursor: pointer;
}

#section-05 .r5-tab.is-active {
  color: var(--kalshi-green);
  border-bottom-color: var(--kalshi-green);
}

#section-05 .r5-body {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  min-height: 740px;
  max-height: 780px;
}

#section-05 .r5-sidebar {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 10px;
  display: grid;
  align-content: start;
  gap: 6px;
}

#section-05 .r5-sidebar-heading {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 0 10px 8px;
}

#section-05 .r5-side-link {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  text-align: left;
  font-size: 14px;
  padding: 8px 10px;
  border-left: 2px solid transparent;
  cursor: pointer;
}

#section-05 .r5-side-link.is-active {
  color: #fff;
  border-left-color: var(--kalshi-green);
  font-weight: 700;
}

#section-05 .r5-content {
  padding: 16px;
  overflow-y: auto;
}

#section-05 .r5-content-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

#section-05 .r5-content-head h3 {
  margin: 0;
  color: #fff;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.02em;
}

#section-05 .r5-filters {
  display: flex;
  gap: 8px;
}

#section-05 .r5-filter {
  border-radius: 999px;
  border: 1px solid rgba(153, 176, 216, 0.35);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font-size: 11px;
  padding: 7px 12px;
}

#section-05 .r5-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

#section-05 .r5-card {
  position: relative;
  background: var(--kalshi-card);
  border: 1px solid var(--kalshi-border);
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

#section-05 .r5-card:hover {
  transform: translateY(-2px);
  border-color: var(--kalshi-border-hover);
  background: var(--kalshi-card-hover);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
}

#section-05 .r5-hot {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--kalshi-green);
  color: #fff;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
}

#section-05 .r5-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

#section-05 .r5-card-status {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  border: 1px solid transparent;
}

#section-05 .r5-card-status--hot {
  background: rgba(4, 186, 117, 0.18);
  border-color: rgba(46, 226, 158, 0.65);
  color: #2ee29e;
}

#section-05 .r5-card-status--new {
  background: rgba(157, 188, 255, 0.14);
  border-color: rgba(157, 188, 255, 0.5);
  color: #b7d0ff;
}

#section-05 .r5-card-head-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

#section-05 .r5-market-logo {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-block;
  overflow: hidden;
  border: 1px solid rgba(153, 176, 216, 0.45);
  flex: 0 0 auto;
}

#section-05 .r5-market-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

#section-05 .r5-market-logo--brand {
  background: #ffffff;
}

#section-05 .r5-market-logo--brand img {
  object-fit: contain;
  padding: 4px;
}

#section-05 .r5-card-head-copy {
  display: grid;
  min-width: 0;
}

#section-05 .r5-badge {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #111;
  background: var(--badge-color);
}

#section-05 .r5-cat {
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
}

#section-05 .r5-series {
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#section-05 .r5-question {
  margin: 10px 0 14px;
  color: #fff;
  font-size: 15.5px;
  line-height: 1.34;
  letter-spacing: -0.01em;
}

#section-05 .r5-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
}

#section-05 .r5-bar {
  height: var(--bar-height);
  border-radius: 999px;
  background: rgba(167, 181, 205, 0.22);
  overflow: hidden;
}

#section-05 .r5-bar-fill {
  display: block;
  height: 100%;
}

#section-05 .r5-bar-fill--yes {
  background: #04ba75;
}

#section-05 .r5-bar-fill--no {
  background: rgba(255, 255, 255, 0.25);
}

#section-05 .r5-pill {
  background: transparent;
  color: #2ee29e;
  border: 1px solid #2ee29e;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  min-width: 44px;
  text-align: center;
}

#section-05 .r5-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

#section-05 .r5-card-foot-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#section-05 .r5-foot-thumb {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(153, 176, 216, 0.35);
}

#section-05 .r5-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

#section-05 .r5-drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

#section-05 .r5-drawer {
  width: min(760px, 100%);
  background: #1e2230;
  border-radius: 14px 14px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  color: #fff;
  transform: translateY(100%);
  transition: transform 300ms ease-out;
}

#section-05 .r5-drawer-backdrop.is-open .r5-drawer {
  transform: translateY(0);
}

#section-05 .r5-drawer-close {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-size: 20px;
  float: right;
  cursor: pointer;
}

#section-05 .r5-drawer h4 {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.28;
}

#section-05 .r5-drawer-grid {
  display: grid;
  gap: 12px;
}

#section-05 .r5-drawer-grid dt {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 4px;
}

#section-05 .r5-drawer-grid dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.45;
}

#section-05 .r5-drawer-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
}

#section-05 .r5-show-more {
  display: none;
}

#section-05 .r5-manifesto {
  max-width: min(920px, 70vw);
  margin: 32px auto 52px;
  color: #333;
}

#section-05 .r5-manifesto p {
  margin: 0 0 20px;
  font-size: 15.5px;
  line-height: 1.8;
}

@keyframes r5ManifestoIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  #section-05 .r5-body {
    grid-template-columns: 1fr;
    min-height: auto;
    max-height: none;
  }

  #section-05 .r5-sidebar {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 14px;
    align-items: center;
  }

  #section-05 .r5-sidebar-heading {
    padding: 0;
    margin-right: 4px;
    white-space: nowrap;
  }

  #section-05 .r5-side-link {
    border-left: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    white-space: nowrap;
  }

  #section-05 .r5-side-link.is-active {
    border-color: #04ba75;
    color: #04ba75;
  }
}

@media (max-width: 768px) {
  .section-heading-media {
    align-items: flex-start;
    flex-direction: column;
  }

  #section-05 .r5-topbar {
    padding: 10px 14px;
  }

  #section-05 .r5-topbar-right {
    display: none;
  }

  #section-05 .r5-topbar-left {
    flex-wrap: wrap;
  }

  #section-05 .r5-sidebar {
    display: none;
  }

  #section-05 .r5-body {
    grid-template-columns: 1fr;
  }

  #section-05 .r5-content-head h3 {
    font-size: 24px;
  }

  #section-05 .r5-filters {
    display: none;
  }

  #section-05 .r5-cards {
    grid-template-columns: 1fr;
  }

  #section-05 .r5-card.r5-card--overflow {
    display: none;
  }

  #section-05 .r5-cards.is-expanded .r5-card--overflow {
    display: block;
  }

  #section-05 .r5-show-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    border: 1px solid rgba(153, 176, 216, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 180ms ease, color 180ms ease;
  }

  #section-05 .r5-show-more:hover {
    border-color: var(--kalshi-green);
    color: #fff;
  }

  #section-05 .r5-show-more.is-hidden {
    display: none;
  }

  #section-05 .r5-tab {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding-bottom: 0;
    border-bottom-width: 2px;
    font-size: 13px;
  }

  #section-05 .r5-card {
    padding: 16px;
  }

  #section-05 .r5-nav-link {
    font-size: 12px;
  }

  #section-05 .r5-cat {
    font-size: 12px;
  }

  #section-05 .r5-series {
    font-size: 12px;
  }

  #section-05 .r5-question {
    font-size: 15px;
  }

  #section-05 .r5-row {
    font-size: 13px;
  }

  #section-05 .r5-card-foot {
    font-size: 12px;
  }

  #section-05 .r5-manifesto {
    max-width: 100%;
  }

  #section-05 .r5-drawer {
    width: 100%;
  }
}
