/*
Theme Name: Dodho
Template: twentytwentyfive
Author: Dodho
*/

/* Evitar el contorno al pulsar; mantener el foco visible para el teclado. */
body :focus:not(:focus-visible) {
    outline: none;
}

header {
  position: sticky !important;
  top: 0;
  z-index: 1000;
}
/* Remove WordPress's automatic top gap between page-level blocks site-wide. */
.wp-site-blocks > * + * {
    margin-block-start: 0;
}
.wp-site-blocks > header.wp-block-template-part .header-row {
    box-sizing: border-box;
    width: 1400px;
    max-width: 100%;
    margin-inline: auto;
}
.wp-site-blocks > header.wp-block-template-part.dodho-header-width-ready .header-row {
    transition: width 450ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.wp-site-blocks > header.wp-block-template-part.dodho-header-over-hero .header-row {
    width: 100%;
}

/* The header reserves its normal document height; its visual stack moves as one. */
.dodho-scroll-header {
    height: var(--dodho-header-height);
    overflow: visible;
    pointer-events: none;
}
.dodho-header-stack {
    position: absolute;
    inset: 0 0 auto;
    transition: transform 450ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.dodho-header-content {
    display: flow-root;
    position: relative;
    z-index: 2;
    pointer-events: auto;
}
.dodho-header-dock {
    position: relative;
    z-index: 1;
    pointer-events: auto;
}
.dodho-header-popovers {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 0;
    z-index: 1002;
    pointer-events: none;
}
.dodho-header-popovers > .archive-popover-panel,
.dodho-header-popovers > .dodho-menu__panel,
.dodho-header-popovers > .dodho-menu__submenu {
    position: absolute;
    top: 0;
    bottom: auto;
    pointer-events: auto;
}
.dodho-header-separator {
    position: absolute;
    z-index: 1;
    width: 1px;
    background: #111;
    pointer-events: none;
    transform: translateX(-.5px);
    opacity: 1;
    transition: opacity 160ms ease;
}
.dodho-header-separator.is-stale {
    opacity: 0;
    transition: none;
}
@media (prefers-reduced-motion: reduce) {
    .dodho-header-separator { transition: none; }
}
.archive-popover-panel:not([hidden]),
.dodho-menu__panel:not([hidden]),
.dodho-menu__submenu:not([hidden]) {
    animation: dodho-popover-in 180ms cubic-bezier(.2, .75, .25, 1) both;
}
@keyframes dodho-popover-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .archive-popover-panel,
    .dodho-menu__panel,
    .dodho-menu__submenu { animation: none !important; }
}
.dodho-scroll-header.is-scroll-hidden .dodho-header-stack {
    transform: translateY(calc(-1 * var(--dodho-header-height, 0px)));
}
.dodho-scroll-header.is-scroll-hidden .dodho-header-content {
    pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
    .wp-site-blocks > header.wp-block-template-part.dodho-header-width-ready .header-row { transition: none; }
    .dodho-header-stack { transition: none; }
}

/* Archive Title: optional author surname emphasis. */
.wp-block-query-title.has-dodho-bold-surname {
    font-weight: 400;
}
.wp-block-query-title.has-dodho-bold-surname .dodho-author-lastname {
    font-weight: 700;
}

/* Tag hero card: keep each direct child vertically centered. */
.wp-block-group.Targeta {
    align-items: center;
}
.wp-block-group.Targeta > * {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
/* Empty meta rows still consume block gap and push the title up. */
.wp-block-group.Targeta .wp-block-group.is-layout-flex:not(:has(> *)) {
    display: none;
}
