/* Shared frontend and editor rules for native children. */
.rychwal-box .wp-block-buttons{margin-top:auto}
.rychwal-service-button .wp-block-button__link{background:transparent;color:inherit;padding:0;border-radius:0;text-decoration:underline;font-weight:600;font-size:inherit}
.rychwal-news-button .wp-block-button__link{background:transparent;color:inherit;padding:0;font-size:inherit;text-decoration:underline}
.rychwal-editable-news-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;padding:0;list-style:none}
.rychwal-editable-news-grid>li{background:#fff;border:1px solid #e2e8f0;border-radius:12px;overflow:hidden;display:flex;flex-direction:column;gap:12px;margin:0}
.rychwal-editable-news-grid>li>:not(.wp-block-post-featured-image){margin:0 24px}
.rychwal-editable-news-grid>li>:last-child{margin-bottom:24px}
.rychwal-editable-news-grid .wp-block-post-featured-image{margin:0}
.rychwal-editable-news-grid .wp-block-post-featured-image img{width:100%;aspect-ratio:16/9;object-fit:cover}
.rychwal-editable-news-grid .wp-block-post-title{font-size:1.25rem;line-height:1.4}
.rychwal-editable-news-grid .wp-block-post-excerpt p{margin:0}
.rychwal-footer__contact li,.rychwal-footer__address{overflow-wrap:anywhere}
@media(max-width:767px){.rychwal-editable-news-grid{grid-template-columns:1fr}.rychwal-news__header{flex-wrap:wrap;gap:16px}}

.rychwal-service-button .wp-block-button__link{align-items:center;border-radius:var(--radius-md);gap:calc(var(--spacing)*2);padding-block:calc(var(--spacing)*3);padding-inline:calc(var(--spacing)*5);--tw-font-weight:var(--font-weight-semibold);background:var(--color-rychwal-blue);color:var(--color-rychwal-white);display:inline-flex;font-weight:var(--font-weight-semibold);text-decoration-line:none;transition-duration:var(--tw-duration,var(--default-transition-duration));transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}
.rychwal-service-button .wp-block-button__link:hover{background:var(--color-rychwal-blue-dark)}
.rychwal-service-button .wp-block-button__link:focus-visible{outline:3px solid var(--color-rychwal-yellow);outline-offset:2px}
.rychwal-service-button .wp-block-button__link:hover .rychwal-service-button .wp-block-button__link-arrow{transform:translate(3px)}
.rychwal-news-button .wp-block-button__link{align-items:center;gap:calc(var(--spacing)*2);--tw-font-weight:var(--font-weight-semibold);color:var(--color-rychwal-blue);display:inline-flex;font-weight:var(--font-weight-semibold);text-decoration-line:none}
.rychwal-news-button .wp-block-button__link:hover{color:var(--color-rychwal-blue-dark);text-decoration:underline;text-underline-offset:4px}
.rychwal-news-button .wp-block-button__link:hover svg{transform:translate(3px)}
.rychwal-news-button .wp-block-button__link:focus-visible{border-radius:4px;outline:3px solid var(--color-rychwal-blue);outline-offset:4px}
.rychwal-service-button .wp-block-button__link::after,.rychwal-news-button .wp-block-button__link::after{content:'→';margin-inline-start:.5em}
.rychwal-editable-news-grid .rychwal-news-image img{aspect-ratio:16/10}
.rychwal-editable-news-grid .rychwal-news-placeholder{background:#f5f7fa;aspect-ratio:16/10;display:flex;align-items:center;justify-content:center;margin:0}
.rychwal-editable-news-grid .rychwal-news-placeholder img{height:100px;width:auto;opacity:.4}
.rychwal-editable-news-grid .wp-block-post-featured-image__placeholder{background:#f5f7fa}

.rychwal-editable-news-grid .rychwal-news-placeholder img{aspect-ratio:auto;object-fit:contain}
/* Keep category badges compact inside the vertical post card in both views. */
.rychwal-editable-news-grid .wp-block-post-terms.rychwal-news-card__cat{align-self:flex-start;width:fit-content;max-width:calc(100% - 48px);flex-wrap:wrap}
.rychwal-editable-news-grid .wp-block-post-terms.rychwal-news-card__cat a{color:inherit;text-decoration:none}
