/* V3 Domů. Content cards and topic tiles use the shared presentation primitives. */
#member #journey-home {
  padding-block-start: var(--page-padding);
}

:is(#journey-home,.carousel-device-preview) .home-spotlight {
  display: flex;
  align-items: stretch;
  min-height: 300px;
  overflow: hidden;
  border-radius: var(--radius-control);
  background: #251d25;
  color: var(--inverse-ink);
}

#journey-home .home-spotlight[hidden],
#journey-home .home-carousel:not([hidden],.home-layout-excluded) + #club-home-spotlight,
#journey-home :is(.home-carousel,.home-spotlight,.home-content-row):not([hidden]) ~ .club-home-welcome {
  display: none;
}

:is(#journey-home,.carousel-device-preview) .home-spotlight-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  gap: 15px;
  padding: 36px;
  overflow-wrap: anywhere;
}

:is(#journey-home,.carousel-device-preview) .home-spotlight-with-image .home-spotlight-copy { flex-basis: 48%; }
:is(#journey-home,.carousel-device-preview) .home-spotlight-copy h1 { font-size: 35px; }
:is(#journey-home,.carousel-device-preview) .home-spotlight-copy :is(h1,p,blockquote) { color: inherit; margin: 0; }
:is(#journey-home,.carousel-device-preview) .home-spotlight-copy .v3-meta { color: #d9d0dc; }
:is(#journey-home,.carousel-device-preview) .home-spotlight-copy .v3-meta:not(.home-spotlight-duration) { order: -1; }
:is(#journey-home,.carousel-device-preview) .home-spotlight-copy :is(.v3-description,blockquote) { white-space: pre-wrap; }

:is(#journey-home,.carousel-device-preview) .home-spotlight-media {
  position: relative;
  flex: 0 0 52%;
  min-width: 0;
}

:is(#journey-home,.carousel-device-preview) .home-spotlight:not(.home-spotlight-with-image) .home-spotlight-media { display: none; }

:is(#journey-home,.carousel-device-preview) .home-spotlight-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

:is(#journey-home,.carousel-device-preview) .home-spotlight-action {
  gap: 12px;
  min-width: 128px;
  min-height: 48px;
  padding-inline: 20px;
  font-weight: 500;
}

:is(#journey-home,.carousel-device-preview) .home-spotlight-action .admin-icon { width: 20px; height: 20px; }

#journey-home .carousel-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

#journey-home .carousel-controls[hidden] { display: none; }

#journey-home :is(.home-carousel-arrow,.home-carousel-options summary,.home-section-link) {
  display: inline-grid;
  place-items: center;
  min-height: var(--touch-size);
  min-width: var(--touch-size);
  padding: 0;
  border: 0;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
}

#journey-home :is(.home-carousel-arrow,.home-carousel-options summary,.home-section-link):hover {
  background: var(--surface);
}

#journey-home :is(.home-carousel-arrow,.home-section-link) .admin-icon { width: 20px; height: 20px; }
#home-carousel-previous .admin-icon { transform: rotate(180deg); }

#journey-home .home-carousel-options {
  position: relative;
  color: var(--muted);
}

#journey-home .home-carousel-options summary {
  list-style: none;
  cursor: pointer;
  font-size: var(--font-meta);
  letter-spacing: 1px;
}

#journey-home .home-carousel-options summary::-webkit-details-marker { display: none; }
#journey-home .home-carousel-options summary span { color: var(--muted); }

#journey-home .home-carousel-menu {
  position: absolute;
  z-index: 1;
  inset-block-start: 100%;
  inset-inline-end: 0;
  min-width: 170px;
  max-width: calc(100vw - 84px);
  padding: var(--space-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--ink);
}

#journey-home .carousel-dots {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

#journey-home .carousel-dots button {
  display: grid;
  place-items: center;
  min-width: var(--touch-size);
  min-height: var(--touch-size);
  padding: 0;
}

#journey-home .carousel-dots button::after {
  content: '';
  width: 9px;
  height: 9px;
  border: 1px solid var(--muted);
  border-radius: 50%;
}

#journey-home .carousel-dots button[aria-current="true"]::after { background: var(--ink); }

#journey-home .home-content-row { margin-block-start: var(--section-gap); }

#journey-home .home-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-block-end: 20px;
}

#journey-home .home-section-heading h2 {
  margin: 0;
  font-size: var(--font-section);
}

#journey-home .home-lesson-grid {
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: var(--grid-gap);
}

@media (max-width: 1150px) {
  #journey-home .home-lesson-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  #journey-home .home-spotlight-copy h1 { font-size: 29px; }
}

@media (max-width: 1024px) {
  #journey-home .home-lesson-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #journey-home .home-spotlight { min-height: 250px; }
}

@media (max-width: 600px) {
  #journey-home .home-spotlight { flex-direction: column-reverse; min-height: 0; }
  #journey-home .home-spotlight-media { flex: none; height: 160px; }
  #journey-home .home-spotlight-copy { padding: 20px; gap: 10px; }
  #journey-home .home-spotlight-copy h1 { font-size: 24px; }
}

#journey-home .home-layout-excluded { display:none!important; }
#journey-home.home-layout-custom:has(> .home-carousel:not([hidden],.home-layout-excluded)) > #club-home-spotlight { display:none; }
#journey-home.home-layout-custom > .club-home-welcome:empty { display:none; }
