/*
 * Opportunities Alert - base styles.
 * Replaces the reset / WordPress core classes that the GeneratePress parent used to provide.
 * Loaded BEFORE style.css so the theme styles always win.
 */
html { -webkit-text-size-adjust: 100%; box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
body { margin: 0; line-height: 1.6; -webkit-font-smoothing: antialiased; }
main, article, aside, details, figcaption, figure, footer, header, nav, section { display: block; }
img, video, canvas, svg { max-width: 100%; height: auto; }
img { border-style: none; vertical-align: middle; }
figure { margin: 0; }
a { background-color: transparent; text-decoration: none; }
a:hover { text-decoration: none; }
abbr[title] { text-decoration: underline dotted; }
b, strong { font-weight: 700; }
small { font-size: 80%; }
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sup { top: -0.5em; } sub { bottom: -0.25em; }
hr { border: 0; border-top: 1px solid #e2e8f0; margin: 1.5rem 0; height: 0; }
p { margin: 0 0 1.2em; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .6em; line-height: 1.25; }
ul, ol { margin: 0 0 1.2em 1.5em; padding: 0; }
li > ul, li > ol { margin-bottom: 0; }
blockquote { margin: 0 0 1.2em; padding: .25em 0 .25em 1.1em; border-left: 4px solid var(--wph-primary, #1b9e7e); }
pre { overflow: auto; padding: 1em; background: #f1f5f9; border-radius: 6px; font-size: .9em; }
code, kbd, samp { font-family: monospace, monospace; font-size: .92em; }
table { border-collapse: collapse; border-spacing: 0; width: 100%; margin: 0 0 1.5em; }
th, td { border: 1px solid #e2e8f0; padding: .55em .75em; text-align: left; }
th { font-weight: 700; background: #f8fafc; }
button, input, optgroup, select, textarea { font-family: inherit; font-size: 100%; line-height: 1.15; margin: 0; }
button, [type="button"], [type="reset"], [type="submit"] { -webkit-appearance: button; cursor: pointer; }
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"],
input[type="number"], input[type="tel"], textarea, select {
    max-width: 100%; border: 1px solid #cbd5e1; border-radius: 6px; padding: .6em .8em; background: #fff; color: inherit;
}
textarea { width: 100%; overflow: auto; vertical-align: top; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--wph-primary, #1b9e7e); outline-offset: 1px; }

/* Accessibility helpers */
.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 {
    background: #fff; clip: auto !important; clip-path: none; color: #0f172a; display: block; font-size: .9rem;
    font-weight: 700; height: auto; left: 8px; padding: 12px 20px; top: 8px; width: auto; z-index: 100000;
    box-shadow: 0 0 2px 2px rgba(0,0,0,.2); text-decoration: none;
}
.skip-link { left: -9999px; position: absolute; top: -9999px; }
.skip-link:focus { left: 8px; top: 8px; }

/* WordPress core content classes */
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; text-align: center; }
.alignwide { max-width: 100%; }
.alignfull { max-width: 100%; }
.wp-caption { max-width: 100%; margin-bottom: 1.2em; }
.wp-caption img { display: block; margin: 0 auto; }
.wp-caption-text, figcaption, .gallery-caption { font-size: .85rem; color: #64748b; text-align: center; padding: .4em 0; }
.sticky, .bypostauthor { display: block; }
.gallery { display: grid; grid-gap: 10px; margin-bottom: 1.5em; }
.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-item { margin: 0; }
.wp-block-image img { height: auto; }
.wp-block-embed iframe, iframe { max-width: 100%; }
.entry-content::after, .clear::after { content: ""; display: table; clear: both; }

/* Pagination (the_posts_pagination / paginate_links) */
.pagination, .navigation.pagination { margin: 2rem 0; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.nav-links .page-numbers {
    display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px;
    border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; color: #0f172a; font-weight: 600;
}
.nav-links .page-numbers.current, .nav-links .page-numbers:hover {
    background: var(--wph-primary, #1b9e7e); border-color: var(--wph-primary, #1b9e7e); color: #fff;
}

/* Comments (comments.php) */
.comments-area { margin-top: 2rem; }
.comments-title, .comment-reply-title { font-size: 1.25rem; margin-bottom: 1rem; }
.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comment-list .children { list-style: none; margin: 0 0 0 1.5rem; padding: 0; }
.comment-body { border: 1px solid #e2e8f0; border-radius: 10px; padding: 1rem 1.15rem; margin-bottom: 1rem; background: #fff; }
.comment-meta { font-size: .85rem; color: #64748b; margin-bottom: .5rem; }
.comment-author .avatar { border-radius: 50%; margin-right: 8px; float: left; }
.comment-author .fn { font-weight: 700; font-style: normal; }
.reply a { font-size: .8rem; font-weight: 700; color: var(--wph-primary, #1b9e7e); }
.comment-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.comment-form p { margin-bottom: 1rem; }
.comment-form .submit, .form-submit input[type="submit"] {
    background: var(--wph-primary, #1b9e7e); color: #fff; border: 0; border-radius: 8px; padding: .75em 1.5em; font-weight: 700;
}
.comment-form .submit:hover { filter: brightness(.92); }
.no-comments { color: #64748b; }

/* Search form shipped with the theme */
.wph-search-form { display: flex; gap: 6px; }
.wph-search-form .search-field { flex: 1; }
