/* Critical layout reservations loaded first in the generated theme head. */
.boost-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
}

.wp-block-post-featured-image {
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.wp-block-post-featured-image :where(a, picture) {
    display: block;
    width: 100%;
    height: 100%;
}

.wp-block-post-featured-image :where(img) {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.boost-post-hero {
    min-height: 300px;
}

/* Header wrapper state previously emitted through local style attributes. */
.boost-site-header--sticky {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
}

.boost-site-header--floating-padding-sm {
    padding: 8px 8px 0;
}

.boost-site-header--floating-padding-md {
    padding: 12px 12px 0;
}

.boost-site-header--floating-padding-lg {
    padding: 20px 20px 0;
}

#boost-tpl-main {
    position: relative;
    scroll-margin-top: var(--boost-header-height, 96px);
}

#boost-tpl-main:focus {
    outline: none;
}

/* Template post-content typography presets. */
.boost-content--editorial .entry-content :where(p, li) {
    margin-bottom: 1.5em;
    font-size: 1.05rem;
    line-height: 1.85;
}

.boost-content--compact .entry-content :where(p, li) {
    margin-bottom: 1em;
    line-height: 1.6;
}

.boost-content--spacious .entry-content :where(p, li) {
    margin-bottom: 2em;
    font-size: 1.08rem;
    line-height: 2;
}

/* Template separators use static classes; per-instance spacing remains in the
 * standard WordPress block style attributes. */
.boost-template-separator {
    display: block;
    width: 100%;
    height: 0;
    margin-right: auto;
    margin-left: auto;
    border: 0;
    border-top: 1px solid var(--boost-border, #e2e8f0);
}

.boost-template-separator--dashed {
    border-top-width: 2px;
    border-top-style: dashed;
}

.boost-template-separator--gradient {
    height: 1px;
    border-top: 0;
    background: linear-gradient(
        90deg,
        transparent,
        var(--boost-border, #e2e8f0) 20%,
        var(--boost-border, #e2e8f0) 80%,
        transparent
    );
}

.boost-template-separator--dots {
    margin-right: auto;
    margin-left: auto;
    color: var(--boost-text-muted, #94a3b8);
    text-align: center;
    letter-spacing: 0.5em;
}

.boost-template-separator--w-10 {
    max-width: 10%;
}

.boost-template-separator--w-11 {
    max-width: 11%;
}

.boost-template-separator--w-12 {
    max-width: 12%;
}

.boost-template-separator--w-13 {
    max-width: 13%;
}

.boost-template-separator--w-14 {
    max-width: 14%;
}

.boost-template-separator--w-15 {
    max-width: 15%;
}

.boost-template-separator--w-16 {
    max-width: 16%;
}

.boost-template-separator--w-17 {
    max-width: 17%;
}

.boost-template-separator--w-18 {
    max-width: 18%;
}

.boost-template-separator--w-19 {
    max-width: 19%;
}

.boost-template-separator--w-20 {
    max-width: 20%;
}

.boost-template-separator--w-21 {
    max-width: 21%;
}

.boost-template-separator--w-22 {
    max-width: 22%;
}

.boost-template-separator--w-23 {
    max-width: 23%;
}

.boost-template-separator--w-24 {
    max-width: 24%;
}

.boost-template-separator--w-25 {
    max-width: 25%;
}

.boost-template-separator--w-26 {
    max-width: 26%;
}

.boost-template-separator--w-27 {
    max-width: 27%;
}

.boost-template-separator--w-28 {
    max-width: 28%;
}

.boost-template-separator--w-29 {
    max-width: 29%;
}

.boost-template-separator--w-30 {
    max-width: 30%;
}

.boost-template-separator--w-31 {
    max-width: 31%;
}

.boost-template-separator--w-32 {
    max-width: 32%;
}

.boost-template-separator--w-33 {
    max-width: 33%;
}

.boost-template-separator--w-34 {
    max-width: 34%;
}

.boost-template-separator--w-35 {
    max-width: 35%;
}

.boost-template-separator--w-36 {
    max-width: 36%;
}

.boost-template-separator--w-37 {
    max-width: 37%;
}

.boost-template-separator--w-38 {
    max-width: 38%;
}

.boost-template-separator--w-39 {
    max-width: 39%;
}

.boost-template-separator--w-40 {
    max-width: 40%;
}

.boost-template-separator--w-41 {
    max-width: 41%;
}

.boost-template-separator--w-42 {
    max-width: 42%;
}

.boost-template-separator--w-43 {
    max-width: 43%;
}

.boost-template-separator--w-44 {
    max-width: 44%;
}

.boost-template-separator--w-45 {
    max-width: 45%;
}

.boost-template-separator--w-46 {
    max-width: 46%;
}

.boost-template-separator--w-47 {
    max-width: 47%;
}

.boost-template-separator--w-48 {
    max-width: 48%;
}

.boost-template-separator--w-49 {
    max-width: 49%;
}

.boost-template-separator--w-50 {
    max-width: 50%;
}

.boost-template-separator--w-51 {
    max-width: 51%;
}

.boost-template-separator--w-52 {
    max-width: 52%;
}

.boost-template-separator--w-53 {
    max-width: 53%;
}

.boost-template-separator--w-54 {
    max-width: 54%;
}

.boost-template-separator--w-55 {
    max-width: 55%;
}

.boost-template-separator--w-56 {
    max-width: 56%;
}

.boost-template-separator--w-57 {
    max-width: 57%;
}

.boost-template-separator--w-58 {
    max-width: 58%;
}

.boost-template-separator--w-59 {
    max-width: 59%;
}

.boost-template-separator--w-60 {
    max-width: 60%;
}

.boost-template-separator--w-61 {
    max-width: 61%;
}

.boost-template-separator--w-62 {
    max-width: 62%;
}

.boost-template-separator--w-63 {
    max-width: 63%;
}

.boost-template-separator--w-64 {
    max-width: 64%;
}

.boost-template-separator--w-65 {
    max-width: 65%;
}

.boost-template-separator--w-66 {
    max-width: 66%;
}

.boost-template-separator--w-67 {
    max-width: 67%;
}

.boost-template-separator--w-68 {
    max-width: 68%;
}

.boost-template-separator--w-69 {
    max-width: 69%;
}

.boost-template-separator--w-70 {
    max-width: 70%;
}

.boost-template-separator--w-71 {
    max-width: 71%;
}

.boost-template-separator--w-72 {
    max-width: 72%;
}

.boost-template-separator--w-73 {
    max-width: 73%;
}

.boost-template-separator--w-74 {
    max-width: 74%;
}

.boost-template-separator--w-75 {
    max-width: 75%;
}

.boost-template-separator--w-76 {
    max-width: 76%;
}

.boost-template-separator--w-77 {
    max-width: 77%;
}

.boost-template-separator--w-78 {
    max-width: 78%;
}

.boost-template-separator--w-79 {
    max-width: 79%;
}

.boost-template-separator--w-80 {
    max-width: 80%;
}

.boost-template-separator--w-81 {
    max-width: 81%;
}

.boost-template-separator--w-82 {
    max-width: 82%;
}

.boost-template-separator--w-83 {
    max-width: 83%;
}

.boost-template-separator--w-84 {
    max-width: 84%;
}

.boost-template-separator--w-85 {
    max-width: 85%;
}

.boost-template-separator--w-86 {
    max-width: 86%;
}

.boost-template-separator--w-87 {
    max-width: 87%;
}

.boost-template-separator--w-88 {
    max-width: 88%;
}

.boost-template-separator--w-89 {
    max-width: 89%;
}

.boost-template-separator--w-90 {
    max-width: 90%;
}

.boost-template-separator--w-91 {
    max-width: 91%;
}

.boost-template-separator--w-92 {
    max-width: 92%;
}

.boost-template-separator--w-93 {
    max-width: 93%;
}

.boost-template-separator--w-94 {
    max-width: 94%;
}

.boost-template-separator--w-95 {
    max-width: 95%;
}

.boost-template-separator--w-96 {
    max-width: 96%;
}

.boost-template-separator--w-97 {
    max-width: 97%;
}

.boost-template-separator--w-98 {
    max-width: 98%;
}

.boost-template-separator--w-99 {
    max-width: 99%;
}

.boost-template-separator--w-100 {
    max-width: 100%;
}

/* Static presentation for template content shortcodes. */
.boost-template-search .boost-search-form__wrapper {
    display: flex;
    align-items: center;
    max-width: 480px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--boost-border, #e2e8f0);
    border-radius: 0.5rem;
    background: var(--boost-bg, #fff);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.boost-template-search .boost-search-form__wrapper:focus-within {
    border-color: var(--boost-primary, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.boost-template-search .boost-search-form__input {
    flex: 1;
    padding: 0.6rem 0 0.6rem 0.75rem;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--boost-text, #1e293b);
    font-size: 0.9rem;
}

.boost-template-search .boost-search-form__input::placeholder {
    color: var(--boost-text-muted, #94a3b8);
}

.boost-template-search .boost-search-form__icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 0.75rem;
    border: 0;
    background: transparent;
    color: var(--boost-text-muted, #64748b);
    cursor: pointer;
    transition: color 0.2s;
}

.boost-template-search .boost-search-form__icon-btn:hover {
    color: var(--boost-primary, #3b82f6);
}

.boost-template-search .boost-search-form__icon-btn svg {
    width: 18px;
    height: 18px;
}

.boost-meta-icon {
    display: inline-flex;
    align-items: center;
    margin-right: 0.25rem;
    opacity: 0.7;
}

/* Native Single Post comments composition. */
.boost-template-comments {
    margin-block: clamp(2rem, 5vw, 4rem);
    color: var(--boost-text, CanvasText);
}

.boost-template-comments .wp-block-comments-title {
    margin-block: 0 1.75rem;
}

.boost-template-comment {
    padding-block: 1.5rem;
    border-block-end: 1px solid var(--boost-border, ButtonBorder);
}

.boost-template-comments > .wp-block-comment-template > li:first-child > .boost-template-comment {
    padding-block-start: 0.25rem;
}

.boost-template-comments .wp-block-comment-template .wp-block-comment-template .boost-template-comment {
    padding-block-start: 1.5rem;
}

.boost-template-comment__meta {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 0.75rem !important;
    row-gap: 0.25rem !important;
}

.boost-template-comment__meta > * {
    margin: 0 !important;
}

.boost-template-comment__meta .wp-block-avatar {
    flex: 0 0 auto;
    line-height: 0;
}

.boost-template-comment__meta .wp-block-avatar img {
    display: block;
    border-radius: 50%;
}

.boost-template-comment__meta .wp-block-comment-author-name {
    font-weight: 600;
    line-height: 1.35;
}

.boost-template-comment__meta .wp-block-comment-date {
    color: var(--boost-text-muted, GrayText);
    font-size: 0.875rem;
    line-height: 1.35;
}

.boost-template-comment > .wp-block-comment-content {
    margin-block: 0.75rem 0.4rem;
    padding-inline-start: calc(40px + 0.75rem);
    line-height: 1.65;
}

.boost-template-comment > .wp-block-comment-content > :first-child {
    margin-block-start: 0;
}

.boost-template-comment > .wp-block-comment-content > :last-child {
    margin-block-end: 0;
}

.boost-template-comment > .wp-block-comment-reply-link {
    display: inline-flex;
    margin-block-start: 0.25rem;
    margin-inline-start: calc(40px + 0.75rem);
    font-weight: 500;
}

.boost-template-comments .wp-block-comments-pagination {
    margin-block: 1.5rem;
}

.boost-template-comments .comment-respond {
    margin-block-start: 2rem;
}

.boost-template-comments .comment-reply-title {
    margin-block: 0 0 0.6rem;
    line-height: 1.25;
}

.boost-template-comments :is(.logged-in-as, .comment-notes, .must-log-in) {
    margin-block: 0 1.25rem;
    color: var(--boost-text-muted, GrayText);
    line-height: 1.55;
}

.boost-template-comments .comment-form > p {
    margin-block: 0 1rem;
}

.boost-template-comments .comment-form label {
    display: block;
    margin-block-end: 0.4rem;
    font-weight: 500;
}

.boost-template-comments .comment-form :is(input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), textarea) {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid var(--boost-border, ButtonBorder);
    border-radius: var(--boost-radius-sm, 6px);
    background: var(--boost-bg, Canvas);
    color: var(--boost-text, CanvasText);
    padding: 0.75rem;
    line-height: 1.5;
}

.boost-template-comments .comment-form textarea {
    min-height: clamp(10rem, 24vw, 14rem);
    resize: vertical;
}

.boost-template-comments .comment-form-cookies-consent {
    display: grid !important;
    grid-template-columns: 1.125rem minmax(0, 1fr);
    align-items: start;
    gap: 0.75rem;
    padding: 0;
}

.boost-template-comments .comment-form-cookies-consent input[type="checkbox"] {
    box-sizing: border-box;
    inline-size: 1.125rem;
    block-size: 1.125rem;
    width: 1.125rem;
    height: 1.125rem;
    min-inline-size: 1.125rem;
    max-inline-size: 1.125rem;
    max-block-size: 1.125rem;
    justify-self: start;
    margin: 0.2rem 0 0;
    padding: 0;
    accent-color: var(--boost-primary, Highlight);
}

.boost-template-comments .comment-form-cookies-consent label {
    min-width: 0;
    margin: 0 !important;
    font-weight: 400;
    line-height: 1.5;
    cursor: pointer;
}

.boost-template-comments .form-submit {
    margin-block: 0.25rem 0;
}

.boost-template-comments .form-submit input[type="submit"] {
    border: 0;
    border-radius: var(--boost-radius-sm, 6px);
    background: var(--boost-primary, Highlight);
    color: var(--boost-text-inverse, HighlightText);
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.boost-template-comments .form-submit input[type="submit"]:hover {
    background: var(--boost-primary-hover, var(--boost-primary, Highlight));
}

.boost-template-comments :is(a, button, input, textarea):focus-visible {
    outline: 2px solid var(--boost-primary, Highlight);
    outline-offset: 2px;
}

@media (width <= 600px) {
    .boost-template-comment > :is(.wp-block-comment-content, .wp-block-comment-reply-link) {
        padding-inline-start: 0;
        margin-inline-start: 0;
    }
}


