/* ==========================================================================
   Creed Auto Worx — WordPress-only adjustments (the main styles are creed.css).
   ========================================================================== */

/* Sections sit edge to edge; spacing comes from creed.css. */
.wp-site-blocks { padding: 0 !important; }
.wp-site-blocks > * + * { margin-block-start: 0 !important; }
main.caw-main > .wp-block-post-content > *,
main.caw-main > * { margin-block-start: 0; }
.wp-block-post-content > .alignfull,
.caw-main .alignfull { margin-left: 0 !important; margin-right: 0 !important; max-width: none; width: 100%; }

/* Sticky header: the template-part wrapper is what sticks. */
.caw-sticky { position: sticky; top: 0; z-index: 50; }
.admin-bar .caw-sticky { top: 32px; }
@media (max-width: 782px) { .admin-bar .caw-sticky { top: 46px; } }
@media (max-width: 600px) { .admin-bar .caw-sticky { top: 0; } }
.caw-sticky .caw-header { position: relative; }

/* Core Image blocks used as photos. */
.wp-block-image.caw-photo { margin: 0; }
.wp-block-image.caw-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; border-radius: 0; }
.wp-block-image.caw-photo--tall img { aspect-ratio: 4 / 5; }

/* Core List blocks used as tick lists. */
.wp-block-list.caw-ticks { padding-left: 0; }
.caw-prose .wp-block-list { padding-left: 1.2em; }

/* Core Details blocks used for FAQs. */
.caw-faq .wp-block-details { margin: 0; }
.caw-faq .wp-block-details summary { margin: 0; }

/* Shortcode block wrapper adds nothing visible. */
.caw-contact > .wp-block-shortcode, .caw-contact > p:empty { margin: 0; }

/* WordPress's own skip link styled to match. */
.skip-link.screen-reader-text:focus { background: var(--caw-lime); color: var(--caw-ink); font-weight: 700; }

/* Generic pages/posts (anything not built from the Creed patterns). */
.caw-generic { padding-block: clamp(48px, 7vw, 88px); }
.caw-generic .wp-block-post-title { margin-bottom: 24px; }
