/* Local layout overrides
   Keep custom edits here so the generated base stylesheet stays untouched. */

html {
  font-size:11pt!important;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}

body {
  min-width:0;
}

.site-wrapper {
  padding:0!important;
}

.site-main {
  width:366px;
  max-width:none;
  transform-origin:top left;
}

.site-main>.inner {
  --padding-horizontal:0rem;
  --padding-vertical:2.5rem;
  --spacing:2.375rem;
  --width:366px;
  width:366px;
  max-width:none;
}

.page-scale-frame {
  width:min(100%, 366px);
  position:relative
}

.site-main>.inner>section>.container-component {
  width:338px!important;
  max-width:338px!important;
  margin-left:auto!important;
  margin-right:auto!important
}

.site-main>.inner>section>.container-component>.wrapper {
  width:100%;
  max-width:100%
}

.buttons-component.instance-1,
.buttons-component.instance-2,
.buttons-component.instance-3,
.buttons-component.instance-5 {
  width:100%;
}

.buttons-component.instance-1>li,
.buttons-component.instance-2>li,
.buttons-component.instance-3>li,
.buttons-component.instance-5>li {
  display:flex;
  justify-content:center;
  width:100%;
}

.buttons-component.instance-1>li>a,
.buttons-component.instance-2>li>a,
.buttons-component.instance-3>li>a,
.buttons-component.instance-5>li>a {
  width:min(20rem, 100%)!important;
  max-width:100%;
}

body.standalone-page #reviews-section.review-tab-section,
body.standalone-page #tips-section.tip-tab-section {
  width:338px;
  max-width:338px;
}

#sammi-section {
  position:relative;
  width:338px;
  max-width:338px;
  margin-left:auto;
  margin-right:auto;
}

#sammi-section .sammi-tab-heading {
  position:relative;
  z-index:2;
  display:inline-flex;
  max-width:100%;
  align-items:center;
  gap:0.35em;
  margin:0 0 -10px;
  border-radius:5px 5px 5px 0;
  padding:10px 15px;
  background:#5A5A5A;
  color:#FFFFFF;
  font-family:'Inter', sans-serif;
  font-size:20px;
  font-weight:500;
  line-height:1.2;
}

#sammi-section .sammi-tab-icon {
  display:block;
  width:1.05rem;
  height:1.05rem;
  flex:0 0 auto;
  fill:currentColor;
}

#sammi-section #container01 {
  margin-top:0!important;
}

#sammi-section #container01>.wrapper {
  border-radius:0 8px 8px 8px;
}

#sammi-section #container01>.wrapper>.inner {
  position:relative;
  padding-top:40px;
  padding-bottom:30px;
}

#sammi-section #icons05 {
  position:absolute;
  top:-34px;
  right:0;
  z-index:3;
  margin:0!important;
  font-size:23px;
}

#sammi-section #icons05>li>a {
  width:28px;
  height:28px;
}

#sammi-section #icons05>li>a>svg,
#sammi-section #icons05 .n01>svg,
#sammi-section #icons05 .n01:hover>svg {
  fill:#FF4500!important;
}

#sammi-section #divider05 {
  display:none;
}

#sammi-section #text31,
#sammi-section #text12,
#sammi-section #text32,
#sammi-section #text26,
#sammi-section #text30 {
  border-top:1px solid rgba(58,64,72,0.18);
  padding-top:1.4rem;
}

#sammi-section #text28 span.p>strong:first-child,
#sammi-section #text31 span.p>strong:first-child,
#sammi-section #text12 span.p>strong:first-child,
#sammi-section #text32 span.p>strong:first-child,
#sammi-section #text26 span.p>strong:first-child,
#sammi-section #text30 span.p>strong:first-child {
  display:block;
  margin-bottom:0.35rem;
}

#sammi-section #text28 span.p>strong:first-child+br,
#sammi-section #text31 span.p>strong:first-child+br,
#sammi-section #text12 span.p>strong:first-child+br,
#sammi-section #text32 span.p>strong:first-child+br,
#sammi-section #text26 span.p>strong:first-child+br,
#sammi-section #text30 span.p>strong:first-child+br {
  display:none;
}

#sammi-section .playlist-inline-link {
  color:inherit;
  text-decoration:none;
}

#sammi-section .playlist-inline-link:hover {
  text-decoration:none;
}

#sammi-section .playlist-inline-link>.text-link-icon {
  display:inline-block;
  width:0.72em;
  height:0.72em;
  margin-left:0.28rem;
  fill:#228EFF;
  transform:translateY(0.04em);
}

.sammi-bottom-back-link {
  display:inline-flex;
  align-items:center;
  gap:0.42rem;
  margin-top:2.75rem;
  color:#2491FF!important;
  font-family:'Inter', sans-serif;
  font-size:17px;
  font-weight:700;
  line-height:1.2;
  text-decoration:none;
}

.sammi-bottom-back-link svg {
  display:block;
  width:0.85em;
  height:0.85em;
  flex:0 0 auto;
  fill:currentColor;
}

.sammi-bottom-back-link:visited,
.sammi-bottom-back-link:active,
.sammi-bottom-back-link:hover {
  color:#2491FF!important;
  text-decoration:none;
}

.site-main .image-component.full>.frame,
.site-main .image-component.instance-1>.frame,
.site-main .image-component.instance-2>.frame,
.site-main .image-component.instance-3>.frame {
  width:100%!important;
  max-width:100%!important;
}

.site-main .image-component>.frame>img {
  width:100%!important;
  max-width:100%!important;
}

#image02>.frame,
#image03>.frame {
  border:1px solid rgba(58,64,72,0.26)!important;
  display:block;
  position:relative;
  background:#fff;
  border-radius:0.75rem;
  box-shadow:0 2px 5px rgba(22,55,91,0.22);
}

#image02>.frame {
  aspect-ratio:1;
}

#image03:not(:last-child) {
  margin-bottom:1.25rem!important;
}

#image03>.frame>img {
  border-radius:inherit!important;
}

#image02 .family-tree-preview {
  display:block;
  width:200%;
  height:200%;
  border:0;
  border-radius:inherit;
  pointer-events:none;
  transform:scale(0.5);
  transform-origin:top left;
}

/* Family tree lightbox */

body.family-lightbox-open {
   overflow: hidden;
}

.family-lightbox {
   position: fixed;
   inset: 0;
   z-index: 99999;
   display: none;
   background: rgba(10,
   18,
   30,
   .78);
   padding: clamp(12px,
   3vw,
   28px);
}

.family-lightbox.is-open {
   display: block;
}

.family-lightbox__frame {
   width: 100%;
   height: 100%;
   border: 0;
   background: #fff;
   border-radius: 8px;
   box-shadow: 0 18px 60px rgba(0,
   0,
   0,
   .32);
}

.family-lightbox__close {
   position: absolute;
   top: clamp(24px,
   3vw,
   40px);
   right: clamp(24px,
   3vw,
   40px);
   z-index: 1;
   width: 44px;
   height: 44px;
   border: 0;
   border-radius: 999px;
   background: #fff;
   color: #172033;
   font: 32px/1 Arial,
   sans-serif;
   cursor: pointer;
   box-shadow: 0 8px 28px rgba(0,
   0,
   0,
   .25);
}

.image-lightbox {
   position: fixed;
   inset: 0;
   z-index: 99999;
   display: none;
   align-items: center;
   justify-content: center;
   background: rgba(10,
   18,
   30,
   .78);
   padding: clamp(12px,
   3vw,
   28px);
}

.image-lightbox.is-open {
   display: flex;
}

.image-lightbox__image {
   display: block;
   max-width: 100%;
   max-height: 100%;
   border: 1px solid rgba(255,
   255,
   255,
   .34);
   border-radius: 8px;
   box-shadow: 0 18px 60px rgba(0,
   0,
   0,
   .32);
}

.image-lightbox__close {
   position: absolute;
   top: clamp(24px,
   3vw,
   40px);
   right: clamp(24px,
   3vw,
   40px);
   z-index: 1;
   width: 44px;
   height: 44px;
   border: 0;
   border-radius: 999px;
   background: #fff;
   color: #172033;
   font: 32px/1 Arial,
   sans-serif;
   cursor: pointer;
   box-shadow: 0 8px 28px rgba(0,
   0,
   0,
   .25);
}
/* Standalone review and tip pages */
body.standalone-page {
  overflow: auto;
}

body.standalone-page .site-wrapper {
  justify-content: flex-start;
  overflow: visible;
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
}

body.standalone-page .site-main {
  opacity: 1;
}

body.standalone-page .site-main > .inner > section {
  display: block;
}
