/* WordPress-only adjustments on top of the ported prototype styles. */

/* Keep the fixed header clear of the admin bar when logged in. */
.admin-bar .site-header { margin-top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { margin-top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { margin-top: 0; } }

/* Mobile menu sits under the header; nudge it below the admin bar too. */
.admin-bar .mobile-menu { margin-top: 32px; }
@media (max-width: 782px) { .admin-bar .mobile-menu { margin-top: 46px; } }

/* Quote form: sending state and the form-level error line. */
.form-actions button[aria-busy="true"] { opacity: .6; cursor: progress; }
.form-error { margin: 0 0 12px; }

/* Tawk.to chat bubble: hidden on phones so it never covers the sticky Call / Get a quote bar
   (carried over from the old Breakdance tracking-code setting). */
@media (max-width: 768px) { html .widget-visible { display: none !important; } }

/* About: real crew photos (the prototype only styled the placeholder icon). */
.crew-photo { overflow: hidden; }
.crew-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Blog posts: WordPress wraps tables in figure.wp-block-table; style it like the prototype's .table-wrap. */
.prose .wp-block-table { overflow-x: auto; margin: 1.4em 0; border-radius: var(--radius); background: var(--surface); }
.prose .wp-block-table table { margin: 0; }
.prose .wp-block-image img { width: 100%; height: auto; border-radius: var(--radius); }

/* Search form (search results and 404). */
.search-row { margin: 0 0 clamp(28px, 4vw, 48px); }
.search-form { display: flex; gap: 10px; max-width: 640px; }
.search-form .input-wrap { flex: 1; }
@media (max-width: 560px) { .search-form { flex-direction: column; } }

/* Archive pagination. */
.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(28px, 4vw, 48px); }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); color: inherit; text-decoration: none; font-weight: 600; }
.pagination .page-numbers.current { background: var(--text); color: var(--bg); border-color: transparent; }

/* Home reviews: the prototype left these cards unstyled (section was hidden). Name and role on separate lines. */
.quote { display: flex; flex-direction: column; }
.quote blockquote { flex: 1; margin: 0 0 20px; line-height: 1.6; }
.quote figcaption { display: flex; flex-direction: column; gap: 2px; padding-top: 16px; border-top: 1px solid var(--line); }
.quote figcaption span { color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .quotes { grid-template-columns: minmax(0, 1fr); } }
