/* WordPress-specific styles for the Local Market Guide theme */

.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.screen-reader-text:focus { clip: auto !important; clip-path: none; height: auto; width: auto; background: var(--ink); color: #fff; padding: 12px 18px; z-index: 100000; left: 8px; top: 8px; }

/* Admin bar offsets */
.admin-bar .site-header { top: 32px; }
.admin-bar .progress { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } .admin-bar .progress { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* Primary menu */
.nav > ul > li.current-menu-item > a strong span { background-size: 100% 2px; }
.nav .nav-cta { display: none; }
@media (max-width: 900px) { .nav .nav-cta { display: inline-flex; margin-top: 28px; } }

/* Archive / page bits */
.archive-desc { max-width: 70ch; font-size: 18.5px; }
.archive-desc p { margin: 0 0 1em; }
.empty-state { max-width: 640px; }
.empty-state h2 { font: 800 clamp(30px, 3.4vw, 46px)/1.1 var(--f-display); color: var(--ink); margin: 0 0 12px; }
.page-prose { margin-inline: auto; }
.page-prose > p:first-child::first-letter { float: none; font: inherit; margin: 0; color: inherit; }
.post-tags { margin-top: 32px; }

/* Pagination */
.pagination { margin-top: 24px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pagination .page-numbers { min-width: 46px; height: 46px; padding: 0 14px; display: inline-grid; place-items: center; border: 1px solid var(--line); font: 600 15px var(--f-display); transition: background .25s, color .25s, border-color .25s; }
.pagination .page-numbers:hover { border-color: var(--ink); }
.pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination .dots { border: 0; }

/* Article content from the block editor */
.prose ol { padding-left: 0; list-style: none; counter-reset: ol; }
.prose ol > li { counter-increment: ol; padding-left: 52px; min-height: 36px; }
.prose ol > li::before { content: counter(ol); width: 34px; height: 34px; top: .1em; border-radius: 50%; background: var(--ink); color: var(--amber); display: grid; place-items: center; font: 700 14px/1 var(--f-display); }
.prose img { height: auto; }
.prose figure { margin: 2em 0; }
.prose figcaption, .wp-caption-text { font-size: 14px; color: var(--muted); margin-top: 10px; }
.prose blockquote, .wp-block-quote { margin: 2em 0; padding: 4px 0 4px 28px; border-left: 4px solid var(--red); font: 600 clamp(22px, 2.2vw, 28px)/1.4 var(--f-display); color: var(--ink); }
.prose blockquote cite { display: block; margin-top: 12px; font: 500 12px var(--f-meta); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.prose h3 { font: 700 22px/1.3 var(--f-display); color: var(--ink); margin: 1.8em 0 .6em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose code { background: rgba(31,42,45,.06); padding: 2px 6px; font: 500 .88em var(--f-meta); }
.prose pre { background: var(--ink); color: #fff; padding: 22px; overflow-x: auto; font: 500 14px/1.6 var(--f-meta); }
.wp-block-table { overflow-x: auto; margin: 1.6em 0; }
.wp-block-table table, .prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.wp-block-table th, .prose th { text-align: left; background: var(--ink); color: #fff; font: 600 15px var(--f-display); padding: 14px 18px; border: 0; }
.wp-block-table td, .prose td { padding: 14px 18px; border: 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.wp-block-table tr:nth-child(even) td, .prose tr:nth-child(even) td { background: rgba(255,173,0,.07); }
.alignleft { float: left; margin: .4em 1.6em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.6em; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide { margin-inline: min(-6vw, -40px); max-width: none; }
.alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
@media (max-width: 1100px) { .alignwide { margin-inline: 0; } }
.page-links { margin-top: 2em; font: 600 15px var(--f-display); }
.sticky .widget ul:not(.chip-list) { list-style: none; padding: 0; margin: 0; }
.sticky .widget ul:not(.chip-list) li { padding: 8px 0; border-bottom: 1px solid var(--line); }

/* Search form */
.search-form { max-width: 560px; }

/* Newsletter embed (third-party forms) */
.newsletter-embed input[type="email"], .newsletter-embed input[type="text"] { width: 100%; border: 0; border-bottom: 2px solid var(--ink); background: transparent; padding: 16px 4px; font-size: 18px; outline: none; }
.newsletter-embed input[type="submit"], .newsletter-embed button { margin-top: 16px; }

/* Contact Form 7, styled to match the theme fields */
.contact-form-wrap .wpcf7 p { margin: 0 0 26px; }
.contact-form-wrap .wpcf7 label { display: block; font: 500 12px var(--f-meta); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.contact-form-wrap .wpcf7 input[type="text"], .contact-form-wrap .wpcf7 input[type="email"], .contact-form-wrap .wpcf7 input[type="tel"], .contact-form-wrap .wpcf7 input[type="url"], .contact-form-wrap .wpcf7 textarea, .contact-form-wrap .wpcf7 select {
	width: 100%; border: 0; border-bottom: 1.5px solid var(--line); background: transparent;
	padding: 16px 0 10px; font-size: 18px; outline: none; border-radius: 0; transition: border-color .3s;
}
.contact-form-wrap .wpcf7 input:focus, .contact-form-wrap .wpcf7 textarea:focus { border-color: var(--amber); }
.contact-form-wrap .wpcf7 input[type="submit"], .wpcf7-submit {
	padding: 16px 30px; border: 0; cursor: pointer; background: var(--amber); color: var(--ink);
	font: 600 15px/1 var(--f-display); letter-spacing: .02em; transition: background .3s, color .3s;
}
.contact-form-wrap .wpcf7 input[type="submit"]:hover { background: var(--ink); color: #fff; }
.wpcf7-not-valid-tip { font-size: 13px; color: var(--red); margin-top: 6px; }
.wpcf7 form .wpcf7-response-output { margin: 18px 0 0; padding: 14px 18px; border: 1.5px solid var(--amber); font-size: 15px; }
.wpcf7-spinner { margin-left: 14px; }

/* Comments */
.comments-area { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.comments-title, .comment-reply-title { font: 700 clamp(24px, 2.4vw, 32px)/1.2 var(--f-display); color: var(--ink); margin: 0 0 24px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 40px; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-body { padding: 22px 0; border-bottom: 1px solid var(--line); }
.comment-author { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font: 500 12px var(--f-meta); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 6px 0 10px; }
.comment-reply-link { font: 500 12px var(--f-meta); letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.comment-form label { display: block; font: 500 12px var(--f-meta); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; border: 1px solid var(--line); background: var(--panel); padding: 14px 16px; font-size: 16px; }
.comment-form textarea { min-height: 160px; }
.comment-form .comment-form-cookies-consent label { display: inline; text-transform: none; letter-spacing: 0; font: 400 14px var(--f-body); }

/* Layout guards for dynamic content */
.nav a strong, .nav a small, .btn { white-space: nowrap; }
.nav ul { flex-wrap: nowrap; }
.dir-search svg { width: 20px; height: 20px; flex: none; }
@media (max-width: 1240px) and (min-width: 901px) { .nav a { padding: 8px 8px; } .nav a strong { font-size: 14px; } }
