/* WordPress-specific additions on top of main.css */

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

/* Inner pages: posts, pages, 404 */
.page-wrap { padding: 170px 0 110px; min-height: 70vh; background: var(--white); }
.page-head { margin-bottom: 40px; }
.page-head h1, .entry-title { font-size: clamp(36px, 5vw, 56px); }
.entry + .entry { margin-top: 60px; padding-top: 60px; border-top: 1px solid var(--sand); }
.entry-title a:hover { color: var(--gold); }
.entry-meta { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.entry-thumb { margin: 28px 0; }
.entry-thumb img { width: 100%; height: auto; }
.entry-content { color: #3f4856; }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; }
.entry-content a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); }
.entry-content img { height: auto; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content blockquote { margin: 1.5em 0; padding-left: 1.2em; border-left: 2px solid var(--gold); font-family: var(--serif); font-size: 1.3em; font-style: italic; }
.pagination { margin-top: 60px; }
.pagination .nav-links { display: flex; gap: 14px; flex-wrap: wrap; }
.pagination a, .pagination span { font-size: 13px; letter-spacing: .12em; }
.page-404 { text-align: center; }
.page-404 .eyebrow { justify-content: center; }
.page-404 .btn { margin-top: 20px; }

/* WordPress core alignment / caption classes */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption.wp-element-caption { font-size: 13px; color: var(--muted); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

/* Services grid rebalances when cards are hidden in the Customizer (desktop) */
@media (min-width: 1081px) {
  .services-grid--4 .service, .services-grid--4 .service:nth-child(4) { grid-column: span 3; }
  .services-grid--4 .service .ph--card { aspect-ratio: 16 / 10; }
  .services-grid--3 .service, .services-grid--3 .service:nth-child(n) { grid-column: span 2; }
  .services-grid--3 .service .ph--card { aspect-ratio: 3 / 4; }
  .services-grid--2 .service, .services-grid--2 .service:nth-child(n) { grid-column: span 3; }
  .services-grid--1 .service { grid-column: 2 / span 4; }
}
