body:has(.az-profile-retry) {
  --deck-ink:#4c3e50;
  --deck-accent:#765b7f;
  --deck-wash:#f1e6f0;
}
body:has(.az-profile-hero--birthday) {
  --deck-ink:#4a3e39;--deck-accent:#795750;--deck-wash:#faeadc;
}
body:has(.az-profile-hero--aisho) {
  --deck-ink:#573c50;--deck-accent:#885474;--deck-wash:#f8e3ee;
}
body:has(.az-profile-retry) :is(#header,#fix_header,#breadcrumb,.c-pageTitle,.p-articleThumb) {display:none!important}
body:has(.az-profile-retry) :is(#content,#main_content) {
  width:100%!important;max-width:none!important;margin-top:0!important;padding:0!important;
}
body:has(.az-profile-retry) .l-mainContent__inner,
body:has(.az-profile-retry) .post_content {padding:0!important;margin-top:0!important}
body:has(.az-profile-retry) .post_content>:is(.az-profile-sitebar,.azami-shared-header__spacer) {margin:0!important}
.az-profile-hero .azor-hero-inner h1 {
  padding:0!important;border:0!important;box-shadow:none!important;background:none!important;font-weight:700;
}
.az-profile-hero .azor-hero-inner h1::before,.az-profile-hero .azor-hero-inner h1::after {display:none!important}
.az-profile-hero .azor-hero-eyebrow {font-weight:700;letter-spacing:.07em}
.az-profile-hero .azor-hero-badge {
  display:inline-block;background:#fffaf3df;border:1px solid #c8aa90;border-radius:24px;
}
@media (max-width:767px) {
  .az-profile-hero .azor-hero-lead {text-wrap:balance}
}
.az-profile-hero--v2 {
  --profile-hero-paper:#fbf3f7;
  position:relative;
  isolation:isolate;
  width:100%;
  margin:0!important;
  background:var(--profile-hero-paper);
}
.az-profile-hero--v2.az-profile-hero--birthday {--profile-hero-paper:#fff4e9}
.az-profile-hero--v2.az-profile-hero--aisho {
  --profile-hero-paper:#fce8f1;
  --deck-ink:#562c42;
  --deck-accent:#904264;
}
.az-profile-hero--v2 .az-profile-hero__figure,
.az-profile-hero--v2 :is(picture,img) {
  display:block;
  width:100%;
  max-width:none;
  height:auto;
  margin:0!important;
}
.az-profile-hero--v2 .az-profile-hero__copy {
  position:absolute;
  inset:0 auto 0 max(24px,calc((100% - 1160px)/2));
  display:flex;
  flex-direction:column;
  justify-content:center;
  width:min(43%,540px);
  margin:0!important;
  color:var(--deck-ink);
}
.az-profile-hero--v2 .az-profile-hero__copy h1 {
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:none!important;
  box-shadow:none!important;
  color:var(--deck-ink)!important;
  font-size:clamp(34px,3.5vw,54px)!important;
  font-weight:700;
  line-height:1.22;
  letter-spacing:.045em;
}
.az-profile-hero--v2 .az-profile-hero__copy h1::before,
.az-profile-hero--v2 .az-profile-hero__copy h1::after {display:none!important}
.az-profile-hero--v2 .az-profile-hero__eyebrow {
  margin:0 0 8px!important;
  color:var(--deck-accent);
  font-size:14px;
  font-weight:700;
  line-height:1.55;
}
.az-profile-hero--v2 .az-profile-hero__lead {
  margin:10px 0 0!important;
  font-size:clamp(16px,1.35vw,19px);
  line-height:1.65;
  text-wrap:balance;
  word-break:auto-phrase;
}
.az-profile-hero--v2 .az-profile-hero__badge {
  display:inline-block;
  margin:12px 0 0!important;
  padding:3px 12px;
  border:1px solid currentColor;
  border-radius:24px;
  color:var(--deck-accent);
  font-size:13px;
  line-height:1.5;
}
@media (max-width:767px) {
  .az-profile-hero--v2 .az-profile-hero__copy {
    inset: 0 0 auto;
    z-index: 1;
    width: 100%;
    align-items: center;
    padding: clamp(10px, 3.3vw, 26px) 12px 0;
    text-align: center;
  }
  .az-profile-hero--v2 .az-profile-hero__copy :is(h1, p) {
    -webkit-text-stroke: 1.75px #fff8f0;
    paint-order: stroke fill;
  }
  .az-profile-hero--v2 .az-profile-hero__copy h1 {
    font-size: clamp(23px, 6.3vw, 38px) !important;
  }
  .az-profile-hero--v2 .az-profile-hero__eyebrow {
    margin: 0 0 3px !important;
    font-size: clamp(10px, 2.65vw, 14px);
    line-height: 1.35;
  }
  .az-profile-hero--v2 .az-profile-hero__lead {
    max-width: 34em;
    margin: 4px auto 0 !important;
    font-size: clamp(11px, 3vw, 16px);
    font-weight: 600;
    line-height: 1.45;
  }
  .az-profile-hero--v2 .az-profile-hero__badge {
    margin: 3px 0 0 !important;
    padding: 0;
    border: 0;
    background: none;
    font-size: clamp(10px, 2.4vw, 13px);
    font-weight: 600;
  }
}
@media (min-width:768px) {
  .az-profile-hero--v3 {
    display:grid;
    grid-template-columns:minmax(0,1fr) min(56%,900px);
    align-items:center;
  }
  .az-profile-hero--v3 > .wp-block-group__inner-container {display:contents}
  .az-profile-hero--v3 .az-profile-hero__figure {
    grid-area:1 / 2;
    min-width:0;
  }
  .az-profile-hero--v3 .az-profile-hero__copy {
    grid-area:1 / 1;
    position:static;
    width:100%;
    min-width:0;
    padding:28px clamp(22px,3vw,52px) 28px max(26px,calc((100% - 520px)/2));
  }
}
.az-profile-hero--v2 .az-profile-hero__figure img {object-fit:contain}
body:has(.az-profile-retry) .az-profile-tool form {scroll-margin-top:78px}
.az-profile-tool--compact {display:flow-root}
.az-profile-tool--compact > .wp-block-group__inner-container > :has(> [data-az-profile-result]) {margin-block-end:0}
.az-profile-tool--compact [data-az-profile-actions] {display:none!important}
#main_content .post_content > .az-profile-tool--compact:has([data-az-profile-result]:not([hidden])) {
  padding-bottom:clamp(16px,1.7vw,20px)!important;
}
.az-profile-tool--compact [data-az-profile-result] > details:last-child {margin-bottom:0}
body:has(.az-profile-retry) .az-profile-tool :is([data-azb-reset],[data-aza-reset],[data-azs-reset]) {display:none!important}
body:has(.az-profile-retry) .az-profile-tool :is(.azb,.aza,.azs) {margin-inline:auto}
body:has(.az-profile-retry) .post_content>#comments {
  width:min(940px,calc(100% - 32px))!important;max-width:940px!important;
  margin:clamp(38px,6vw,80px) auto!important;padding-inline:0!important;
}
body:has(.az-profile-retry) #comments header[class$="-comment-intro"] {text-align:center;margin:0 0 26px;padding:0 8px}
body:has(.az-profile-retry) #comments header[class$="-comment-intro"] h2 {
  color:var(--deck-ink)!important;font-size:clamp(20px,2.4vw,28px)!important;
  background:none!important;border:0!important;padding:0!important;margin:0 0 10px!important;
}
body:has(.az-profile-retry) #comments header[class$="-comment-intro"] h2::before,
body:has(.az-profile-retry) #comments header[class$="-comment-intro"] h2::after,
body:has(.az-profile-retry) #comments #reply-title:empty {display:none!important}
body:has(.az-profile-retry) #comments [class$="-comment-meta"] {display:flex;flex-wrap:wrap;align-items:baseline;gap:3px 9px}
body:has(.az-profile-retry) #comments :is([class$="-comment-card"],[class$="-comment-formBox"]) {border-radius:18px}
.az-profile-comment-age {font-size:.78em;color:#795f74}
.az-profile-age {margin:0}
.az-profile-age label {display:block;margin-bottom:6px;font-weight:700}
.az-profile-age select {
  display:block;width:min(100%,240px);min-height:42px;padding:7px 10px;border:1px solid #dbced9;
  border-radius:8px;background:#fff;color:var(--deck-ink);
}
.az-profile-seo h2.wp-block-heading {
  border:0!important;border-left:4px solid var(--deck-accent)!important;
  background:none!important;box-shadow:none!important;color:var(--deck-ink)!important;
  padding:6px 0 6px 15px!important;font-size:clamp(20px,2.5vw,28px)!important;line-height:1.55;
}
.az-profile-seo h2.wp-block-heading::before,.az-profile-seo h2.wp-block-heading::after {display:none!important}
.az-profile-seo .az-profile-birthday-guide,
.az-profile-seo .az-profile-birthday-guide .azb-about {
  width:100%;max-width:none;margin:0 0 24px;padding:0;background:none;box-shadow:none;border:0;
}


#main_content .post_content > :is(.az-profile-hero--birthday, .az-profile-hero--aisho) + .az-profile-tool {
  margin-block-end: 0 !important;
}

:is(.az-profile-hero--birthday, .az-profile-hero--aisho) + .az-profile-tool {
  padding-block: clamp(28px, 4vw, 56px) clamp(24px, 3vw, 40px);
  background: linear-gradient(145deg, #fffaf6, var(--deck-wash));
}

:is(.az-profile-hero--birthday, .az-profile-hero--aisho) + .az-profile-tool :is(.azb-form, .aza-form) {
  padding-block: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}


/* Keep the background on the full-width calculator section. */
#main_content .post_content > .az-profile-animal-tool {
  margin-block-end: 0 !important;
}

#main_content .post_content > .az-profile-tool:has(:is(
  .azs-input, .azm-input, .azh-input, .azv-input, .azk-input, .azsu-input,
  .azmy-form-card, .azzw-form, .azqm-form, .azau-form
)):not(:has(:is([data-az-profile-result], [data-azau-result]):not([hidden]))) {
  background: linear-gradient(145deg, #fffbf8, #f5ebf2);
  padding-block-end: clamp(24px, 3vw, 40px);
}

#main_content .post_content > .az-profile-tool :is(
  .azs-input, .azm-input, .azh-input, .azv-input, .azk-input, .azsu-input,
  .azmy-form-card, .azzw-form, .azqm-form, .azau-form
) {
  padding-block: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#main_content .post_content > .az-profile-tool .azs-input {
  margin-block-end: 0;
}

#main_content .post_content > .az-profile-animal-tool:has(.azau-form:not([hidden])) {
  background: linear-gradient(150deg, #fffdf7, #f8edde);
}
