/* ReHub Rose Edit — feminine, clean, high-contrast rose palette. */
:root {
  --rose-main: #AD3D69;
  --rose-main-hover: #903153;
  --rose-ink: #382630;
  --rose-muted: #715D67;
  --rose-blush: #FAEBF0;
  --rose-card: #FFF5F7;
  --rose-paper: #FFFFFF;
  --rose-canvas: #FFF8FA;
  --rose-line: #F0D6E0;
  /* Override REHub's theme color variables even if its inline CSS prints later. */
  --rehub-main-color: #AD3D69 !important;
  --rehub-sec-color: #382630 !important;
  --rehub-main-btn-bg: #AD3D69 !important;
  --rehub-link-color: #923055 !important;
}

/* Site palette, not global typography or block spacing. */
body:not(.dark_body) {
  background-color: var(--rose-canvas) !important;
  color: var(--rose-ink);
}
#main_header,
#main_header .header_wrap,
#main_header .header-top {
  background-color: #FFFCFD;
}
#main_header .main-nav.white_style,
#main_header .main-nav:not(.dark_style) {
  background-color: #FDF0F4;
  border-color: var(--rose-line);
}
#main_header nav.top_menu > ul > li > a,
#main_header .textlogo a {
  color: var(--rose-ink) !important;
}
#main_header nav.top_menu > ul > li > a:hover,
#main_header nav.top_menu > ul > li.current-menu-item > a {
  color: var(--rose-main) !important;
}
#main_header nav.top_menu ul.sub-menu > li > a:hover {
  background-color: var(--rose-card);
}
#main_header .main-nav.dark_style {
  background-color: var(--rose-ink);
}
body:not(.dark_body) .rh-post-wrapper,
body:not(.dark_body) .widget {
  border-color: var(--rose-line);
}
body:not(.dark_body) .rh-post-wrapper {
  background-color: var(--rose-paper);
  box-shadow: 0 8px 30px rgba(108, 54, 77, .045);
}
body:not(.dark_body) :is(.post-inner, .widget, .commentlist) h1,
body:not(.dark_body) :is(.post-inner, .widget, .commentlist) h2,
body:not(.dark_body) :is(.post-inner, .widget, .commentlist) h3 {
  color: var(--rose-ink);
}
body:not(.dark_body) .post-inner a:not(.rose-related-card, .wp-block-button__link, .btn_offer_block, .rose-toc a),
body:not(.dark_body) .widget a:hover {
  color: var(--rose-main);
}
body:not(.dark_body) :is(.post-inner, .widget) a:focus-visible {
  outline: 2px solid var(--rose-main);
  outline-offset: 3px;
}
body:not(.dark_body) :is(.rehub-main-btn-bg, .wp-block-button__link:not(.has-background), .wpsm-button.rehub_main_btn) {
  background-color: var(--rose-main) !important;
  color: #fff !important;
}
body:not(.dark_body) :is(.rehub-main-btn-bg, .wp-block-button__link:not(.has-background), .wpsm-button.rehub_main_btn):hover {
  background-color: var(--rose-main-hover) !important;
}
body:not(.dark_body) .post-inner :is(blockquote.wp-block-quote, .wp-block-pullquote) {
  border-color: var(--rose-main);
}
body:not(.dark_body) .post-inner :is(h2, h3)[id] {
  scroll-margin-top: 100px;
}

/* A slim line at the very top: article-based reading progress. */
#rose-reading-progress {
  height: 4px;
  position: fixed;
  z-index: 2147483000;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(250, 222, 231, .5);
  pointer-events: none;
}
#rose-reading-progress > span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #D66E93 0%, #A83965 100%);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}
body.admin-bar #rose-reading-progress { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar #rose-reading-progress { top: 46px; }
}

/* Native <details>: keyboard accessible and collapsed on page load. No icons. */
body.single-post .rose-toc {
  width: 100%;
  clear: both;
  margin: 26px 0 32px;
  padding: 0;
  border: 1px solid var(--rose-line);
  border-radius: 16px;
  background: #FFFAFB;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(112, 58, 83, .035);
}
body.single-post .rose-toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 21px;
  list-style: none;
  cursor: pointer;
  color: var(--rose-ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  user-select: none;
}
body.single-post .rose-toc summary::-webkit-details-marker { display: none; }
body.single-post .rose-toc summary::marker { content: ''; }
body.single-post .rose-toc summary:focus-visible {
  outline: 2px solid var(--rose-main);
  outline-offset: -4px;
}
body.single-post .rose-toc .rose-toc-show,
body.single-post .rose-toc .rose-toc-hide {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--rose-main);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
}
body.single-post .rose-toc:not([open]) .rose-toc-hide,
body.single-post .rose-toc[open] .rose-toc-show { display: none; }
body.single-post .rose-toc nav {
  padding: 2px 21px 19px;
  border-top: 1px solid var(--rose-line);
}
body.single-post .rose-toc ul,
body.single-post .rose-toc li {
  margin: 0 !important;
  padding: 0;
  list-style: none !important;
}
body.single-post .rose-toc li { border-bottom: 1px solid #F6E6EC; }
body.single-post .rose-toc li:last-child { border-bottom: 0; }
body.single-post .rose-toc a {
  display: block;
  padding: 11px 0;
  color: #48313D !important;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 500;
  text-decoration: none !important;
  background: transparent !important;
}
body.single-post .rose-toc a:hover { color: var(--rose-main) !important; }
body.single-post .rose-toc .rose-toc-sub a {
  padding-left: 18px;
  color: var(--rose-muted) !important;
  font-weight: 400;
}

/* Edge-to-edge photos. JS measures the actual article border at each width.
   Only standalone media gets .rose-edge; photos inside text columns are ignored.
   Full post images reach the card border on desktop, viewport on mobile. */
body.single-post .main-side.single article .rose-edge {
  position: relative;
  float: none !important;
  clear: both;
  box-sizing: border-box;
  width: calc(100% + var(--rose-bleed-left, 0px) + var(--rose-bleed-right, 0px)) !important;
  max-width: none !important;
  margin-left: calc(-1 * var(--rose-bleed-left, 0px)) !important;
  margin-right: calc(-1 * var(--rose-bleed-right, 0px)) !important;
}
body.single-post .main-side.single article .rose-edge:is(figure.wp-block-image, .wp-block-image, figure.top_featured_image, .wp-caption, p.rose-image-only) > img,
body.single-post .main-side.single article .rose-edge:is(figure.wp-block-image, .wp-block-image, figure.top_featured_image, .wp-caption, p.rose-image-only) > a > img,
body.single-post .main-side.single article .rose-edge.wp-block-image > figure > img,
body.single-post .main-side.single article .rose-edge.wp-block-image > figure > a > img {
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
}
body.single-post .main-side.single article .rose-edge figure.wp-block-image > img,
body.single-post .main-side.single article .rose-edge figure.wp-block-image > a > img,
body.single-post .main-side.single article .rose-edge.wp-block-columns > .wp-block-column img {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
}
body.single-post .main-side.single article .rose-edge .wp-block-column,
body.single-post .main-side.single article .rose-edge .wp-block-image {
  min-width: 0;
}
body.single-post .main-side.single article .rose-edge.wp-block-columns {
  gap: clamp(8px, 1.4vw, 16px);
}
body.single-post .main-side.single article .rose-edge.wp-block-columns .wp-block-image {
  margin: 0 !important;
}
body.single-post .main-side.single article .rose-edge figcaption,
body.single-post .main-side.single article .rose-edge .wp-caption-text {
  padding: 8px 14px 0;
  color: #796C71;
  font-size: 12px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.5;
  text-align: center;
}
body.single-post .main-side.single article .rose-edge.wp-block-gallery figcaption {
  padding: 8px 10px;
}

/* Suggested articles match the supplied horizontal-image card idea. */
body.single-post .rose-related {
  display: block;
  width: 100%;
  clear: both;
  margin: 46px 0 32px;
  padding: 25px 0 0;
  border-top: 1px solid var(--rose-line);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
body.single-post .rose-related-title {
  margin: 0 0 16px;
  font-size: clamp(21px, 3vw, 26px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--rose-ink);
}
body.single-post .rose-related-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
body.single-post .rose-related-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 8px 20px 8px 8px;
  border: none !important;
  border-radius: 23px;
  color: var(--rose-ink) !important;
  background: var(--rose-card) !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: background-color .2s ease;
}
body.single-post .rose-related-card:hover {
  background: #FBE4EC !important;
  color: var(--rose-main-hover) !important;
}
body.single-post .rose-related-card:focus-visible {
  outline: 2px solid var(--rose-main) !important;
  outline-offset: 3px;
}
body.single-post .rose-related-card img.rose-related-image,
body.single-post .rose-related-placeholder {
  flex: 0 0 90px;
  display: block;
  width: 90px !important;
  height: 90px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 18px;
  object-fit: cover;
  max-width: none !important;
  box-shadow: none !important;
}
body.single-post .rose-related-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #EFD6E0;
  color: #9A4267;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}
body.single-post .rose-related-label {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: clamp(16px, 2.1vw, 20px);
  font-weight: 500;
  line-height: 1.35;
  color: inherit;
  text-decoration: none !important;
}
@media (max-width: 767px) {
  body.single-post .main-side.single article .rose-edge.wp-block-columns.rose-image-pair {
    display: flex !important;
    flex-flow: row nowrap !important;
    gap: 8px !important;
  }
  body.single-post .main-side.single article .rose-edge.wp-block-columns.rose-image-pair > .wp-block-column {
    flex: 1 1 0 !important;
    width: 0 !important;
    min-width: 0 !important;
    margin: 0 !important;
  }
  body.single-post .rose-toc { margin: 22px 0 26px; border-radius: 14px; }
  body.single-post .rose-toc summary { padding: 15px 16px; }
  body.single-post .rose-toc nav { padding: 1px 16px 14px; }
  body.single-post .rose-related { margin-top: 36px; }
}
@media (max-width: 430px) {
  body.single-post .rose-related-list { gap: 6px; }
  body.single-post .rose-related-card { padding: 6px 14px 6px 6px; gap: 12px; border-radius: 19px; }
  body.single-post .rose-related-card img.rose-related-image,
  body.single-post .rose-related-placeholder {
    flex-basis: 75px;
    width: 75px !important;
    height: 75px !important;
    border-radius: 15px;
  }
  body.single-post .rose-related-label { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  body.single-post .rose-related-card { transition: none; }
}
