/* ByShare v28.1 · public homepage CTA + admin directory layout refinement.
   Scoped overrides avoid changing card visibility controls elsewhere. */

/* Clear, accessible public "Explore the app" action at every breakpoint. */
.bs-landing .bs-hero-actions .bs-explore-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 55px;
  width: auto;
  max-width: 100%;
  padding: 13px 22px;
  white-space: nowrap;
  color: #624194;
  background: rgba(255,255,255,.91);
  border: 1.5px solid #d9c5ed !important;
  box-shadow: 0 8px 21px rgba(114, 79, 161, .12);
}
.bs-landing .bs-hero-actions .bs-explore-cta .bs-play-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 29px;
  width: 29px;
  height: 29px;
  padding-left: 2px;
  background: #f5edff;
  border: 1px solid #c9aeec;
  border-radius: 50%;
  color: #854ed0;
  font-size: 11px;
}
.bs-landing .bs-hero-actions .bs-explore-cta:hover {
  background: #fff;
  border-color: #b58ae6 !important;
  box-shadow: 0 12px 29px rgba(114, 79, 161, .19);
}
.bs-landing .bs-hero-actions .bs-explore-cta:focus-visible {
  outline: 3px solid #8450d2;
  outline-offset: 3px;
}
.bs-landing #app-preview {
  scroll-margin-top: calc(var(--byshare-mobile-nav, 70px) + 20px);
}
@media (max-width: 440px) {
  .bs-landing .bs-hero-actions .bs-explore-cta {
    width: min(100%, 226px);
    align-self: center;
    min-height: 50px;
    padding: 10px 18px;
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bs-landing .bs-hero-actions .bs-explore-cta { transition: none; }
}

/* Directory-specific controls: don't inherit the icon-grid used by card editor. */
.admin-directory-panel {
  width: 100%;
  max-width: 900px;
}
.admin-directory-current-status { margin-bottom: 16px; }
.admin-directory-fieldset {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}
.admin-directory-fieldset legend {
  padding: 0;
  margin-bottom: 12px;
  color: #6f6386;
  font-size: 12px;
  font-weight: 750;
}
.admin-directory-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}
.admin-directory-option {
  position: relative;
  display: grid;
  grid-template-columns: 21px minmax(0, 1fr);
  align-items: start;
  gap: 13px;
  min-width: 0;
  min-height: 125px;
  padding: 20px 17px;
  cursor: pointer;
  border: 1.5px solid #e4daf4;
  border-radius: 16px;
  background: #fcfaff;
  transition: border-color .17s, background .17s, box-shadow .17s;
}
.admin-directory-option input[type="radio"] {
  position: static;
  appearance: auto;
  display: block;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  flex-shrink: 0;
  accent-color: #8551d8;
  cursor: pointer;
}
.admin-directory-option-copy {
  display: block;
  min-width: 0;
}
.admin-directory-option-copy strong {
  display: block;
  margin-bottom: 6px;
  color: #302350;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: normal;
  word-break: normal;
}
.admin-directory-option-copy small {
  display: block;
  color: #786d8d;
  font-size: 12px;
  line-height: 1.65;
  overflow-wrap: normal;
  word-break: normal;
}
.admin-directory-option:has(input[type="radio"]:checked) {
  background: #f5edff;
  border-color: #a46ce8;
  box-shadow: 0 8px 23px rgba(148,98,218,.12);
}
.admin-directory-option:focus-within {
  outline: 3px solid #b48aff;
  outline-offset: 2px;
}
.admin-directory-explanation {
  margin: 16px 0 19px;
  font-size: 12px;
  line-height: 1.7;
}
@media (max-width: 720px) {
  .admin-directory-options { grid-template-columns: minmax(0, 1fr); }
  .admin-directory-option { min-height: 0; padding: 17px 15px; }
}


/* Refined App Store CTA under the hero actions.
   Match the polished treatment of the Explore button while keeping it visually secondary. */
.bs-landing .byshare-home-app-link {
  margin-top: 12px;
}
.bs-landing .byshare-home-app-link .bs-ios-download-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  width: auto;
  max-width: 100%;
  padding: 13px 24px;
  white-space: nowrap;
  color: #5a3c89;
  background: rgba(255,255,255,.95);
  border: 1.5px solid #dac7ef !important;
  border-radius: 22px;
  box-shadow: 0 10px 26px rgba(114, 79, 161, .12);
}
.bs-landing .byshare-home-app-link .bs-ios-download-cta:hover {
  background: #fff;
  border-color: #b58ae6 !important;
  box-shadow: 0 14px 31px rgba(114, 79, 161, .18);
}
.bs-landing .byshare-home-app-link .bs-ios-download-cta:focus-visible {
  outline: 3px solid #8450d2;
  outline-offset: 3px;
}
.bs-landing .byshare-home-app-link .bs-ios-download-icon,
.bs-landing .byshare-home-app-link .bs-ios-download-arrow {
  display: inline-grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f5edff;
  border: 1px solid #cfb7ee;
  color: #854ed0;
}
.bs-landing .byshare-home-app-link .bs-ios-download-cta span:nth-child(2) {
  font-weight: 700;
}
.bs-landing .byshare-home-app-link .bs-ios-download-arrow {
  flex-basis: 28px;
  width: 28px;
  height: 28px;
  padding-left: 1px;
}
@media (max-width: 640px) {
  .bs-landing .byshare-home-app-link {
    display: flex;
    justify-content: center;
  }
}
@media (max-width: 440px) {
  .bs-landing .byshare-home-app-link .bs-ios-download-cta {
    width: min(100%, 420px);
    min-height: 53px;
    padding: 12px 18px;
    font-size: 14px;
  }
  .bs-landing .byshare-home-app-link .bs-ios-download-icon,
  .bs-landing .byshare-home-app-link .bs-ios-download-arrow {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bs-landing .byshare-home-app-link .bs-ios-download-cta { transition: none; }
}


/* v28.1.2 — unify the three homepage hero CTAs on desktop and mobile. */
.bs-landing .bs-hero-cta-cluster {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: min(100%, 560px);
  margin: 32px 0 39px;
}
.bs-landing .bs-hero-cta-cluster .bs-hero-actions {
  display: contents;
  margin: 0;
}
.bs-landing .bs-hero-cta-cluster .bs-button-primary,
.bs-landing .bs-hero-cta-cluster .bs-explore-cta {
  width: 100%;
  min-height: 58px;
  padding-inline: 24px;
}
.bs-landing .bs-hero-cta-cluster .bs-button-primary {
  justify-content: space-between;
}
.bs-landing .bs-hero-cta-cluster .bs-explore-cta {
  max-width: none;
}
.bs-landing .byshare-home-app-link {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 0;
}
.bs-landing .byshare-home-app-link .bs-ios-download-cta {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 58px;
  padding: 13px 20px;
  text-align: left;
}
.bs-landing .byshare-home-app-link .bs-ios-download-cta span:nth-child(2) {
  justify-self: start;
}
@media (max-width: 900px) {
  .bs-landing .bs-hero-cta-cluster {
    margin-inline: auto;
  }
}
@media (max-width: 640px) {
  .bs-landing .bs-hero-cta-cluster {
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
    margin: 28px 0 32px;
  }
  .bs-landing .byshare-home-app-link {
    grid-column: auto;
    display: block;
  }
  .bs-landing .bs-hero-cta-cluster .bs-button-primary,
  .bs-landing .bs-hero-cta-cluster .bs-explore-cta,
  .bs-landing .byshare-home-app-link .bs-ios-download-cta {
    min-height: 56px;
  }
}
@media (max-width: 440px) {
  .bs-landing .bs-hero-cta-cluster .bs-button-primary,
  .bs-landing .bs-hero-cta-cluster .bs-explore-cta,
  .bs-landing .byshare-home-app-link .bs-ios-download-cta {
    padding-inline: 18px;
    font-size: 15px;
  }
  .bs-landing .byshare-home-app-link .bs-ios-download-cta span:nth-child(2) {
    font-size: clamp(14px, 4.4vw, 16px);
  }
}
