/* 2.4.0: stick the OUTER template part, not its short-lived inner group. */
.wp-site-blocks > .transiente-sticky-header,
.wp-site-blocks > header.wp-block-template-part {
  position: sticky; top: 0; z-index: 1000; background: #fff;
}
.admin-bar .wp-site-blocks > .transiente-sticky-header,
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 32px; }
.site-header { position: static; backdrop-filter: none; }
html { scroll-padding-top: 110px; }
.site-header .transiente-shop-button {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: #4854A4; border: 1px solid #4854A4; border-radius: 999px;
  padding: .58rem 1rem; font-weight: 700; text-decoration: none;
  white-space: nowrap; min-height: 24px;
}
.site-header .transiente-shop-button:hover,
.site-header .transiente-shop-button:focus-visible { background: transparent; color: #252B55; border-color: #252B55; }
.site-header .transiente-shop-button:focus-visible { outline-color: #4854A4; }
.site-header a:focus-visible, .transiente-commerce a:focus-visible,
.transiente-commerce button:focus-visible { outline: 3px solid #a64720; outline-offset: 4px; }
.site-header .wp-block-navigation__container { flex-wrap: nowrap; }
/* Use the core accessible mobile dialog before the expanded menu becomes cramped. */
@media (max-width: 1100px) {
  .site-header .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }
  .site-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
  .site-header .wp-block-navigation__responsive-container.is-menu-open {
    position: fixed !important; inset: 0 !important; width: auto !important;
    min-height: 0 !important; height: 100dvh !important; max-height: 100dvh !important;
    padding: max(70px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)) !important;
    overflow: auto !important; box-sizing: border-box; background: #fff;
  }
  .site-header .wp-block-navigation__responsive-dialog { width: 100% !important; min-height: 0 !important; }
  .site-header .wp-block-navigation__responsive-container-content { padding-top: 10px !important; align-items: stretch !important; }
  .site-header .is-menu-open .wp-block-navigation__container { flex-direction: column !important; align-items: stretch !important; width: 100% !important; gap: 8px !important; }
  .site-header .is-menu-open .wp-block-navigation-item { width: 100%; }
  .site-header .is-menu-open .wp-block-navigation-item__content { box-sizing: border-box; display: block; padding: 12px; }
  .site-header .is-menu-open .transiente-shop-button { background: transparent !important; color: #4854A4 !important; width: 100%; text-align: center !important; border: 1px solid #4854A4; }
  .site-header .is-menu-open .transiente-publish-link > a { text-align: center !important; }
}
@media (min-width: 601px) and (max-width: 782px) {
  .admin-bar .wp-site-blocks > .transiente-sticky-header,
  .admin-bar .wp-site-blocks > header.wp-block-template-part { top: 46px; }
}
@media (max-width: 600px) {
  .admin-bar .wp-site-blocks > .transiente-sticky-header,
  .admin-bar .wp-site-blocks > header.wp-block-template-part { top: 0; }
}
/* Retain native WooCommerce templates and checkout behavior. */
.transiente-commerce main { padding-inline: clamp(16px, 3vw, 32px); box-sizing: border-box; }
.transiente-commerce main > :where(.wp-block-post-title, .wp-block-post-content, .woocommerce, .wp-block-woocommerce-product-collection, .woocommerce-breadcrumb, .wp-block-woocommerce-breadcrumbs),
.transiente-commerce .wp-block-post-content > :where(.woocommerce, .wp-block-woocommerce-cart, .wp-block-woocommerce-checkout, .wp-block-woocommerce-product-collection) {
  width: 100%; max-width: var(--wp--style--global--wide-size, 1180px) !important; margin-inline: auto; box-sizing: border-box;
}
.transiente-commerce h1 { font-size: clamp(2rem, 4vw, 3.4rem); }
.transiente-commerce :where(input:not([type=checkbox]):not([type=radio]):not([type=submit]), select, textarea) { border-radius: 10px; font: inherit; max-width: 100%; }
.transiente-commerce :where(.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .wc-block-components-button:not(.is-link)) {
  background: #a64720; color: #fff; border-radius: 999px; font-family: inherit; font-weight: 600;
}
.transiente-commerce :where(.woocommerce a.button, .woocommerce button.button, .wc-block-components-button:not(.is-link)):hover { background: #803415; color: #fff; }
.transiente-commerce :where(.woocommerce ul.products li.product, .wc-block-product) {
  border: 1px solid var(--transiente-border); border-radius: 24px; padding: 18px; box-sizing: border-box;
  background: #fff; box-shadow: var(--transiente-shadow);
}
.transiente-commerce :where(.woocommerce ul.products li.product a img, .wc-block-components-product-image img) { object-fit: contain; height: 240px; width: 100%; }
.transiente-commerce :where(.woocommerce-loop-product__title, .wp-block-post-title) { overflow-wrap: anywhere; }
.transiente-commerce .woocommerce-loop-product__title { font-family: var(--wp--preset--font-family--serif); font-size: 1.35rem !important; }
.transiente-commerce .woocommerce div.product div.images img { object-fit: contain; }
.transiente-commerce .woocommerce div.product .woocommerce-tabs { margin-top: 2rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Product heading: subtitle on its own line at exactly half the title size. */
/* Editorial book top row. Overrides narrow default constrained block width. */
.single-transiente_livro .transiente-book-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; max-width: var(--wp--style--global--wide-size, 1180px) !important;
  margin-inline: auto !important; margin-bottom: 1.5rem; box-sizing: border-box;
}
.single-transiente_livro .transiente-book-topbar .transiente-breadcrumbs {
  flex: 1; min-width: 0; margin: 0; max-width: none; justify-content: flex-start;
}
.single-transiente_livro .transiente-book-topbar .transiente-book-category {
  flex-shrink: 0; max-width: 40%; margin: 0 0 0 auto; text-align: right;
}
.single-transiente_livro .transiente-single-book-layout { align-items: flex-start; }
.single-transiente_livro .transiente-single-book-cover,
.single-transiente_livro .transiente-single-book-title { margin-top: 0 !important; }
.single-transiente_livro .transiente-book-actions-v2 .transiente-book-action {
  background: #4854A4; color: #fff; gap: .5rem;
}
.single-transiente_livro .transiente-book-actions-v2 .transiente-book-action:hover { background: #252B55; }
.transiente-file-icon { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.transiente-mobile-downloads { display: none; }
@media (max-width: 782px) {
  .single-transiente_livro .transiente-book-topbar { gap: .65rem; align-items: flex-start; }
  .transiente-mobile-downloads { display: flex; justify-content: center; gap: .5rem; position: fixed; bottom: 0; left: 0; right: 0; padding: .65rem .5rem calc(.65rem + env(safe-area-inset-bottom)); background: #fff; z-index: 90; box-shadow: 0 -4px 20px #252b5520; }
  .transiente-mobile-downloads .transiente-book-action { gap: .4rem; font-size: .8rem; padding: .6rem; }
}
.single-product .transiente-product-subtitle {
  display: block; font-size: 50%; line-height: 1.4; font-weight: 400;
  letter-spacing: normal; margin-top: .5em; overflow-wrap: anywhere;
}
.single-product.transiente-commerce .woocommerce button.button.single_add_to_cart_button,
.single-product.transiente-commerce .single_add_to_cart_button,
.single-product.transiente-commerce .wc-block-add-to-cart-form .wc-block-components-button,
.single-product.transiente-commerce .wp-block-woocommerce-add-to-cart-with-options .wc-block-components-button {
  background: #4854A4; color: #fff; border-radius: 999px;
}
.single-product.transiente-commerce .single_add_to_cart_button:hover,
.single-product.transiente-commerce .single_add_to_cart_button:focus-visible,
.single-product.transiente-commerce .wc-block-add-to-cart-form .wc-block-components-button:hover,
.single-product.transiente-commerce .wp-block-woocommerce-add-to-cart-with-options .wc-block-components-button:hover {
  background: #252B55; color: #fff;
}
