/* Reusable compositions. All brand colors come from Astra or block controls.
 * Solutto COnsulting LLC — Gilson Rincón, gilson.rincon@soluttoconsulting.com.
 */
:is(.entry-content, .editor-styles-wrapper) { --editorial-gap: clamp(28px, 5vw, 72px); }
:is(.entry-content, .editor-styles-wrapper) :is(.wp-block-group, .wp-block-column, .wp-block-cover) { min-width: 0; box-sizing: border-box; }
:is(.entry-content, .editor-styles-wrapper) :is(.is-style-editorial-section, .is-style-editorial-cta) {
    padding: clamp(56px, 7vw, 96px) clamp(24px, 4vw, 40px);
    margin-block: 0;
}
:is(.is-style-editorial-section) :is(.wp-block-columns) { gap: var(--editorial-gap); margin-block-end: 0; }
:is(.editorial-intro) { max-width: 800px; margin: 0 auto 56px; text-align: center; }
:is(.editorial-intro) :is(p) { color: var(--ast-global-color-3); font-size: 1.08rem; margin-top: 16px; }
:is(.is-style-editorial-hero) { min-height: clamp(560px, 70vh, 720px); padding: 76px clamp(24px, 4vw, 40px); margin-block: 0; }
:is(.is-style-editorial-hero) :is(.wp-block-cover__inner-container) { max-width: var(--wp--style--global--content-size, 1200px); margin-inline: auto; text-align: center; }
/* H1/H2 typography is supplied by Astra's global responsive controls. */
:is(.is-style-editorial-hero) :is(h1) { max-width: 970px; margin: 20px auto 0; }
:is(.is-style-editorial-hero) :is(.editorial-lead) { font-size: clamp(1.05rem, 1.7vw, 1.28rem); max-width: 760px; line-height: 1.6; margin: 22px auto 0; }
:is(.is-style-editorial-hero) :is(.wp-block-buttons) { margin-top: 32px; justify-content: center; gap: 14px; }
:is(.is-style-editorial-hero) :is(.wp-block-button.is-style-outline .wp-block-button__link) { color: inherit; border-color: currentColor; background: transparent; }
:is(.entry-content, .editor-styles-wrapper) .wp-block-cover.is-style-editorial-hero { color: var(--ast-global-color-4); }
:is(.entry-content, .editor-styles-wrapper) .wp-block-cover.is-style-editorial-hero p:not(.has-text-color) { color: inherit; }
:is(.entry-content, .editor-styles-wrapper) .is-style-editorial-hero .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-text-color) { color: inherit; border-color: currentColor; }
:is(.is-style-editorial-badge) { display: inline-block; border: 1px solid currentColor; border-radius: 99px; padding: 7px 13px; font-size: .78rem; font-weight: 700; margin: 0; }
:is(.is-style-editorial-rounded) { border-radius: 24px; overflow: hidden; box-shadow: 0 16px 44px rgb(22 24 45 / 10%); margin: 0; }
:is(.is-style-editorial-rounded) :is(img) { display: block; width: 100%; }
:is(.editorial-proof) :is(.is-style-editorial-rounded img) { aspect-ratio: 1.15; object-fit: cover; }
:is(.is-style-editorial-pillar) { border-block-end: 1px solid var(--ast-global-color-7); padding: 26px 0 26px 28px; position: relative; margin-block: 0; }
:is(.is-style-editorial-pillar):first-child { border-block-start: 1px solid var(--ast-global-color-7); }
:is(.is-style-editorial-pillar)::before { content: ''; position: absolute; left: 0; top: 28px; width: 4px; height: 38px; border-radius: 99px; background: var(--ast-global-color-0); }
:is(.is-style-editorial-pillar) :is(h3) { font-size: clamp(1.25rem, 2vw, 1.65rem); margin: 0; }
:is(.is-style-editorial-pillar) :is(p) { font-size: .94rem; line-height: 1.58; color: var(--ast-global-color-3); margin: 8px 0 0; }
:is(.editorial-case) :is(.wp-block-columns) { align-items: center; }
:is(.editorial-case) :is(.is-style-editorial-rounded img) { aspect-ratio: 4/3; object-fit: cover; }
:is(.editorial-case) :is(h2) { margin: 14px 0 18px; }
:is(.editorial-case) :is(h3) { font-size: 1rem; margin: 30px 0 14px; }
:is(.editorial-case) :is(p:not(.is-style-editorial-eyebrow)) { color: var(--ast-global-color-3); }
:is(.is-style-editorial-eyebrow) { color: var(--ast-global-color-0); font-size: .79rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
:is(.is-style-editorial-areas) { list-style: circle; padding-inline-start: 20px; margin: 0; font-size: .9rem; font-weight: 600; }
:is(.is-style-editorial-areas) :is(li) { padding-left: 4px; margin-bottom: 8px; }
:is(.is-style-editorial-areas) :is(li)::marker { color: var(--ast-global-color-0); }
:is(.is-style-editorial-cta) { text-align: center; }
:is(.is-style-editorial-cta) :is(h2) { max-width: 720px; margin-inline: auto; }
.wp-block-group.is-style-editorial-cta.has-text-color :is(h1,h2,h3):not(.has-text-color) { color: inherit; }
:is(.is-style-editorial-cta) :is(p) { max-width: 720px; margin: 16px auto 28px; font-size: 1.08rem; }
:is(.is-style-editorial-cta) :is(.wp-block-buttons) { justify-content: center; }
:is(.wp-block-button.is-style-editorial-light .wp-block-button__link) { color: var(--ast-global-color-0); background: var(--ast-global-color-4); border-color: var(--ast-global-color-4); }
:is(.entry-content, .editor-styles-wrapper) :is(a, button):focus-visible { outline: 3px solid var(--ast-global-color-0); outline-offset: 4px; }
:is(.is-style-editorial-hero, .is-style-editorial-cta) :is(a):focus-visible { outline-color: currentColor; }
@media (max-width: 1024px) {
    :is(.editorial-proof) > .wp-block-columns { flex-direction: column; }
    :is(.editorial-proof) :is(.is-style-editorial-rounded img) { aspect-ratio: 16/7; }
}
@media (max-width: 1023px) {
    :is(.editorial-case) > .wp-block-columns { flex-direction: column; }
    :is(.editorial-case--reverse) > .wp-block-columns { flex-direction: column-reverse; }
}
@media (max-width: 767px) {
    :is(.is-style-editorial-hero) :is(.wp-block-cover__inner-container) { text-align: left; }
    :is(.is-style-editorial-hero) :is(.wp-block-buttons) { justify-content: flex-start; }
    :is(.editorial-proof) :is(.is-style-editorial-rounded img) { aspect-ratio: 3/2; }
    :is(.is-style-editorial-rounded) { border-radius: 16px; }
}
@media (max-width: 479px) {
    :is(.is-style-editorial-hero, .is-style-editorial-cta) :is(.wp-block-buttons) { flex-direction: column; align-items: stretch; }
    :is(.is-style-editorial-hero, .is-style-editorial-cta) :is(.wp-block-button, .wp-block-button__link) { width: 100%; }
    :is(.is-style-editorial-cta) { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { :is(.entry-content, .editor-styles-wrapper) * { scroll-behavior: auto; transition: none; } }

/* Native compositions shared by additional editorial pages. */
.editorial-split > .wp-block-columns,
.editorial-route-grid > .wp-block-columns,
.editorial-hero-grid > .wp-block-columns { gap: var(--editorial-gap); margin-bottom: 0; }
.editorial-split > .wp-block-columns { align-items: center; }
.editorial-split .wp-block-column > .wp-block-group > :last-child { margin-bottom: 0; }
.editorial-route .wp-block-image { margin-bottom: 24px; }
.editorial-route .wp-block-image img { aspect-ratio: 16/9; object-fit: cover; }
.editorial-transversal { margin-top: 32px; }
.editorial-grid { gap: 28px; }
.editorial-grid .is-style-editorial-pillar { padding: 22px 0 22px 20px; }
.editorial-grid .is-style-editorial-pillar h3 { font-size: 1.25rem; }
.editorial-portrait { max-width: 400px; margin: 28px auto 0; }
.editorial-portrait img { height: auto; object-fit: contain; }
.editorial-split-hero .wp-block-image img { aspect-ratio: 4/3; object-fit: cover; }
.editorial-split-hero p { margin-top: 24px; }
.is-style-editorial-steps { padding-left: 2rem; margin: 0; }
.is-style-editorial-steps li { padding: 18px 0 22px 12px; border-bottom: 1px solid var(--ast-global-color-7); color: var(--ast-global-color-3); }
.is-style-editorial-steps li::marker { color: var(--ast-global-color-0); font-weight: 700; }
.is-style-editorial-steps strong { color: var(--ast-global-color-2); font-size: 1.15rem; line-height: 1.6; }
.editorial-note { padding: 28px; border: 1px solid currentColor; border-radius: 20px; text-align: left; }
.editorial-note > p { font-weight: 700; }
.editorial-hero-grid > .wp-block-columns > .wp-block-column:first-child { flex-basis: 72%; }
.editorial-hero-grid > .wp-block-columns > .wp-block-column:last-child { flex-basis: 28%; align-self: center; }
.editorial-hero-grid h1 { text-align: left; }
.editorial-hero-grid .editorial-lead { text-align: left; }
.wp-block-cover.is-style-editorial-card { min-height: 420px; padding: 36px; border-radius: 24px; overflow: hidden; height: 100%; }
.editorial-transversal .wp-block-cover.is-style-editorial-card { min-height: 280px; }
.wp-block-cover.is-style-editorial-card h3 { font-size: clamp(1.65rem, 2.4vw, 2.2rem); line-height: 1.15; }
.wp-block-cover.is-style-editorial-card p { margin-block: 18px 26px; }
.wp-block-cover.is-style-editorial-cta { min-height: 400px; }
:is(.entry-content,.editor-styles-wrapper) .wp-block-cover:is(.is-style-editorial-card,.is-style-editorial-cta) { color: var(--ast-global-color-4); }
:is(.entry-content,.editor-styles-wrapper) .wp-block-cover:is(.is-style-editorial-card,.is-style-editorial-cta) :is(h2,h3,p,a):not(.has-text-color):not(.wp-block-button__link) { color: inherit; }
.wp-block-cover.is-style-editorial-card :is(h3 a) { text-decoration: none; }
.wp-block-cover.is-style-editorial-card .wp-block-buttons { margin-top: 24px; }
/* Astra assigns body/heading colors to editable Cover children with a more
 * specific selector than core's inherited color. Keep the editor consistent
 * with the frontend, while preserving explicit per-block color controls. */
.editor-styles-wrapper .wp-block-cover:is(.is-style-editorial-hero,.is-style-editorial-card,.is-style-editorial-cta) .wp-block-cover__inner-container .block-editor-rich-text__editable:is(.wp-block-heading,.wp-block-paragraph):not(.has-text-color) { color: inherit; }
@media (max-width: 1024px) {
    .editorial-split > .wp-block-columns,
    .editorial-hero-grid > .wp-block-columns { flex-direction: column; }
    .editorial-hero-grid > .wp-block-columns > .wp-block-column { width: 100%; }
    .editorial-split .wp-block-image { max-width: 780px; margin-inline: auto; }
    .editorial-split .editorial-portrait { max-width: 400px; }
}
@media (max-width: 767px) {
    .editorial-route-grid > .wp-block-columns { flex-direction: column; }
    .editorial-grid { grid-template-columns: minmax(0,1fr); }
    .wp-block-cover.is-style-editorial-card { padding: 28px; min-height: 380px; border-radius: 16px; }
    .editorial-note { padding: 22px; }
    .is-style-editorial-badge { max-width: 100%; white-space: normal; }
}

/* Editable route cards. Solutto COnsulting LLC — Gilson Rincón, CEO.
 * Core groups, images and linked headings retain their native block controls.
 * Icons are decorative masks; the only interactive element is the heading link.
 */
.editorial-card-section.is-style-editorial-section { padding-block: clamp(72px, 9vw, 120px); }
.editorial-card-section .editorial-intro--left { max-width: 800px; margin-inline: 0; text-align: left; }
.editorial-card-section .editorial-route-grid > .wp-block-columns { gap: 28px; align-items: stretch; }
.editorial-card-section .editorial-route-grid > .wp-block-columns > .wp-block-column { display: flex; flex-direction: column; }
.is-style-editorial-route-card,
.editorial-feature-band {
    background: var(--ast-global-color-4);
    border: 1px solid var(--ast-global-color-7);
    border-radius: 24px;
    box-shadow: 0 16px 42px color-mix(in srgb, var(--ast-global-color-2) 8%, transparent);
    overflow: hidden;
}
.is-style-editorial-route-card { display: flex; flex: 1; flex-direction: column; width: 100%; margin-block: 0; }
:is(.entry-content, .editor-styles-wrapper) .wp-block-group:is(.is-style-editorial-route-card, .editorial-feature-band) { padding: 0; }
.is-style-editorial-route-card > :is(.wp-block-image, .editorial-link-list) { width: 100%; max-width: none; margin: 0; }
.is-style-editorial-route-card .wp-block-image { border-radius: 0; box-shadow: none; overflow: hidden; }
.is-style-editorial-route-card .wp-block-image img { display: block; width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; border-radius: 0; }
.editorial-link-list { display: flex; flex: 1; flex-direction: column; }
.editorial-link-list > .editorial-link-row { margin-block: 0; }
.editorial-link-row {
    --editorial-row-inset: 24px;
    --editorial-row-gap: 18px;
    --editorial-icon-size: 44px;
    --editorial-arrow-size: 22px;
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: none;
    min-height: 126px;
    margin-block: 0;
    padding-block: 22px;
    padding-inline: calc(var(--editorial-row-inset) + var(--editorial-icon-size) + var(--editorial-row-gap)) calc(var(--editorial-row-inset) + var(--editorial-arrow-size) + var(--editorial-row-gap));
    border-block-start: 1px solid var(--ast-global-color-7);
    background: var(--ast-global-color-4);
    color: var(--ast-global-color-2);
    transition: background-color 160ms ease;
}
.editorial-link-row h3 { margin: 0; font-size: clamp(1.3125rem, 2.2vw, 1.5rem); line-height: 1.25; }
:is(.entry-content, .editor-styles-wrapper) .editorial-link-row h3 a { color: inherit; text-decoration: none; }
.editorial-link-row p { margin: 7px 0 0; color: var(--ast-global-color-3); font-size: .94rem; line-height: 1.55; }
.editorial-link-row::before,
.editorial-link-row::after,
.editorial-link-row h3 a::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}
.editorial-link-row::before {
    left: var(--editorial-row-inset);
    width: var(--editorial-icon-size);
    height: var(--editorial-icon-size);
    border-radius: 12px;
    background: color-mix(in srgb, var(--ast-global-color-0) 10%, var(--ast-global-color-4));
}
.editorial-link-row::after {
    left: calc(var(--editorial-row-inset) + (var(--editorial-icon-size) - 22px) / 2);
    width: 22px;
    height: 22px;
    background: var(--ast-global-color-0);
    -webkit-mask: var(--editorial-row-icon) center / contain no-repeat;
    mask: var(--editorial-row-icon) center / contain no-repeat;
}
.is-style-editorial-icon-settings { --editorial-row-icon: url('icons/settings.svg'); }
.is-style-editorial-icon-code { --editorial-row-icon: url('icons/code.svg'); }
.is-style-editorial-icon-search { --editorial-row-icon: url('icons/search.svg'); }
.is-style-editorial-icon-repeat { --editorial-row-icon: url('icons/repeat.svg'); }
.is-style-editorial-icon-gauge { --editorial-row-icon: url('icons/gauge.svg'); }
.is-style-editorial-icon-connections { --editorial-row-icon: url('icons/connections.svg'); }
.editorial-link-row h3 a::before {
    right: var(--editorial-row-inset);
    width: var(--editorial-arrow-size);
    height: var(--editorial-arrow-size);
    background: var(--ast-global-color-0);
    -webkit-mask: url('icons/arrow-right.svg') center / contain no-repeat;
    mask: url('icons/arrow-right.svg') center / contain no-repeat;
    transition: transform 160ms ease;
}
/* Restrict the larger pointer target to the frontend so text stays selectable
 * and every child block remains directly editable inside Gutenberg. */
.entry-content .editorial-link-row h3,
.entry-content .editorial-link-row h3 a { position: static; }
.entry-content .editorial-link-row h3 a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.entry-content .editorial-link-row:hover { background: color-mix(in srgb, var(--ast-global-color-0) 4%, var(--ast-global-color-4)); }
.entry-content .editorial-link-row:hover h3 a::before { transform: translate(3px, -50%); }
.editorial-link-row:focus-within { outline: 3px solid var(--ast-global-color-0); outline-offset: -4px; }
.entry-content .editorial-link-row h3 a:focus-visible { outline: none; }
.editorial-feature-band { margin-top: 28px; }
.editorial-feature-band > .wp-block-columns { gap: 0; margin: 0; align-items: stretch; }
.editorial-feature-band > .wp-block-columns > .wp-block-column:first-child { flex-basis: 34%; flex-grow: 0; }
.editorial-feature-band > .wp-block-columns > .wp-block-column:last-child { flex-basis: 66%; flex-grow: 0; }
.editorial-feature-band .wp-block-image { height: 100%; margin: 0; border-radius: 0; box-shadow: none; }
.editorial-feature-band .wp-block-image img { display: block; width: 100%; height: 100%; min-height: 230px; aspect-ratio: 3/2; object-fit: cover; border-radius: 0; }
.editorial-feature-band .editorial-link-row { --editorial-row-inset: clamp(24px, 5vw, 52px); min-height: 100%; height: 100%; border-block-start: 0; }
@media (max-width: 900px) {
    .editorial-card-section .editorial-route-grid > .wp-block-columns:not(.is-not-stacked-on-mobile),
    .editorial-feature-band > .wp-block-columns:not(.is-not-stacked-on-mobile) { flex-direction: column; }
    .editorial-card-section .editorial-route-grid > .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column,
    .editorial-feature-band > .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column { flex-basis: auto; width: 100%; }
    .editorial-feature-band .wp-block-image { height: auto; }
    .editorial-feature-band .wp-block-image img { height: auto; min-height: 0; aspect-ratio: 16/9; }
    .editorial-feature-band .editorial-link-row { --editorial-row-inset: 24px; min-height: 126px; height: auto; border-block-start: 1px solid var(--ast-global-color-7); }
}
@media (max-width: 767px) {
    .is-style-editorial-route-card,
    .editorial-feature-band { border-radius: 16px; }
}
@media (max-width: 479px) {
    .editorial-link-row,
    .editorial-feature-band .editorial-link-row { --editorial-row-inset: 18px; --editorial-row-gap: 14px; --editorial-icon-size: 40px; --editorial-arrow-size: 18px; padding-block: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .editorial-link-row,
    .editorial-link-row h3 a::before { transition: none; }
}
