.idea-explore main {max-width: 1440px; margin-inline: auto; padding-inline: 32px;}
@media (min-width: 768px) and (max-width: 1099px) {
  .idea-explore main {padding-inline: 24px;}
}
@media (max-width: 767px) {
  .idea-explore main {padding-inline: 18px;}
}
.idea-explore h1 {font-size: clamp(2rem, 5vw, 3.2rem); margin-block: 1rem;}
.idea-filter {display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; border-block: 1px solid var(--line); padding-block: 1rem;}
.idea-filter input, .idea-filter select {width: min(100%, 18rem);}
.idea-filter .button {margin: 0;}
.idea-count, .idea-source small {color: var(--muted);}
.idea-grid {display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 295px), 1fr)); gap: 1rem;}
.idea-tile {position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: start; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); overflow-wrap: anywhere;}
.idea-tile-backdrop {
  position: absolute;
  inset: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  max-width: none;
  object-fit: cover;
  filter: blur(7px);
  opacity: .18;
  z-index: -1;
  pointer-events: none;
}
html[data-theme="light"] .idea-tile-backdrop {opacity: .13;}
.idea-source {display: flex; align-items: center; align-self: start; gap: .55rem; color: var(--muted); line-height: 1.5;}
.idea-source strong {font-size: .85rem; font-weight: 500;}
.idea-source small {display: block; font-size: .75rem;}
.idea-source img {width: 27px; height: 36px; object-fit: cover; border-radius: 3px;}
.idea-front h2 {margin: 0; font-size: clamp(1.55rem, 2vw, 1.7rem); line-height: 1.55; text-align: center; text-wrap: balance;}
.idea-tile p {margin: 0;}
.idea-stage {position: relative; align-self: stretch; flex: 1; display: grid; perspective: 1000px;}
.idea-front, .idea-back {padding: 1.4rem;}
.idea-stage[data-ready] .idea-rotor {display: grid;}
.idea-stage[data-ready] :is(.idea-front, .idea-back) {grid-area: 1 / 1;}
.idea-front {
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  row-gap: .7rem;
}
.idea-stage[data-ready] .idea-back {
  padding-bottom: 3.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.idea-stage[data-ready]:not([data-flipped]) .idea-back,
.idea-stage[data-ready][data-flipped] .idea-front {visibility: hidden;}
.idea-stage .idea-flip {
  position: absolute; inset: 0; width: 100%; padding: 0; background: transparent;
  color: var(--accent); border: 0; border-radius: 0;
}
.idea-flip[hidden] {display: none;}
.idea-flip span {position: absolute; inset-inline-end: 1rem; bottom: .7rem; font-size: 1.35rem; line-height: 1;}
.idea-flip:focus-visible {outline-offset: -3px;}
.idea-tile > .button.button-secondary {
  align-self: stretch;
  margin-top: auto;
  border-width: 1px 0 0;
  border-radius: 0;
  gap: .4rem;
}
.idea-tile > .button.button-secondary:focus-visible {outline-offset: -3px;}
.idea-explore .archive-pagination {justify-content: center; margin-block: 2rem;}
.idea-explore .page-numbers {display: flex; gap: .75rem; list-style: none; padding: 0;}
.idea-explore .page-current {font-weight: bold; border-bottom: 2px solid currentColor;}
@media (max-width: 560px) {
  .idea-filter label, .idea-filter input, .idea-filter select {width: 100%;}
}
.idea-stage .idea-open:not([hidden]) {
  position: absolute; inset: 0; width: 100%; padding: 0;
  background: transparent; border: 0; border-radius: 0;
}
.idea-stage .idea-open:focus-visible {outline-offset: -3px;}
.idea-open:not([hidden]) ~ .idea-flip {
  inset: auto; inset-inline-end: 0; bottom: 0; width: 44px; height: 44px;
}
html:has(.idea-viewer[open]) {overflow: hidden;}
.idea-viewer[open] {
  position: fixed; inset: 0; margin: 0; padding: 0; border: 0;
  width: 100%; max-width: none; height: 100%; height: 100dvh; max-height: none;
  display: flex; flex-direction: column; color: var(--text); background: var(--bg);
}
.idea-viewer-bar {display: flex; align-items: center; justify-content: space-between; padding: .6rem max(1rem, 4vw); border-bottom: 1px solid var(--line);}
.idea-feed {flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scroll-snap-type: y mandatory;}
.idea-slide {
  min-height: 100%; box-sizing: border-box; scroll-snap-align: start; scroll-snap-stop: always;
  isolation: isolate; overflow: hidden; position: relative; display: grid; align-content: center;
  gap: 1rem; padding: 2rem max(1.4rem, calc((100% - 40rem) / 2));
}
.idea-slide h2 {margin: 0; font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.55;}
.idea-slide p {margin: 0; line-height: 1.95;}
.idea-slide .button {justify-self: start;}
.idea-viewer [data-viewer-retry]:not([hidden]) {align-self: center;}
