/* WordPress-specific additions on top of main.css */
.logo img { width: 38px; height: 38px; object-fit: contain; }
.nav ul { display: contents; list-style: none; }
.nav li { list-style: none; display: contents; }
.nav a { display: block; }
.thumb--img img { width: 100%; height: 100%; object-fit: cover; }
.thumb--img::after { display: none; }
.row .thumb--img { aspect-ratio: auto; }
.feature .thumb--img img { aspect-ratio: 16 / 8.5; }
.article-cover.thumb--img img { aspect-ratio: 21 / 8; }

.filters a { border: 2px solid var(--ink); background: var(--paper); color: var(--ink); border-radius: 99px; padding: 6px 14px; font-weight: 600; }
.filters a:hover, .filters a.is-active { background: var(--ink); color: var(--bg); }
.page-hero .search-form { max-width: 560px; margin-top: 16px; }

/* Pagination from the_posts_pagination() */
.pagination { margin-top: 28px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers { min-width: 42px; height: 42px; padding: 0 12px; display: grid; place-items: center; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); border-radius: 10px; font-weight: 700; }
.pagination .page-numbers.current { background: var(--accent); color: #fff; }
.pagination .page-numbers.dots { border: 0; background: none; }

/* Search form */
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-form .search-field { width: 100%; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 10px; font: inherit; background: var(--bg); color: var(--ink); }
.search-form .search-submit { padding: 12px 18px; border: 2px solid var(--ink); border-radius: 10px; background: var(--accent); color: #fff; font-weight: 700; cursor: pointer; }
.search__box .search-form { padding: 0; }
.search__box .search-form label { display: block; }
.search__box .search-field { border: 0; border-radius: 0; border-bottom: 2px solid var(--line); padding: 20px 22px; font: 600 20px var(--font-body); background: transparent; }
.search__box .search-submit { display: none; }
.search__hint { padding: 14px 22px; color: var(--muted); font-size: 14px; }

/* Content from the block editor */
.prose img { border-radius: 10px; height: auto; }
.prose figure { margin: 1.4em 0; }
.prose figcaption { color: var(--muted); font-size: 14px; text-align: center; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose h3 { font-size: 22px; margin-top: 1.3em; }
.prose blockquote { border-left: 5px solid var(--teal); background: var(--teal-soft); padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 1.4em 0; }
.prose blockquote p:last-child { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 15px; }
.prose th, .prose td { border: 1.5px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--bg); }
.prose pre { background: var(--ink); color: var(--bg); padding: 16px; border-radius: 10px; overflow: auto; }
.prose pre code { background: none; color: inherit; padding: 0; }
.prose .wp-block-details, .prose details { border: 2px solid var(--ink); border-radius: 10px; padding: 12px 16px; margin-bottom: 10px; background: var(--bg); }
.prose details summary { font-weight: 700; cursor: pointer; }
.alignwide { margin-left: -40px; margin-right: -40px; }
.alignfull { margin-left: -40px; margin-right: -40px; width: auto; }
.aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.wp-caption-text { color: var(--muted); font-size: 14px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.post-tags { margin-top: 28px; }

/* Widgets */
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.widget a:hover { color: var(--accent); }

/* Comments */
.comments { margin-top: 36px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-body { background: var(--bg); border: 2px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.comment-reply-link { font-weight: 700; color: var(--accent); font-size: 14px; }
.comment-form { display: grid; gap: 12px; }
.comment-form label { font-weight: 700; font-size: 14px; display: block; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 10px; font: inherit; background: var(--bg); color: var(--ink); }
.comment-form .submit { padding: 12px 20px; border-radius: 10px; font-weight: 700; border: 2px solid var(--ink); background: var(--accent); color: #fff; cursor: pointer; }

/* Recommended box */
.promo { position: relative; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); padding: 20px; box-shadow: 6px 6px 0 var(--lime); }
.promo__badge { display: inline-block; background: var(--lime); color: #17202a; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 3px 10px; border-radius: 99px; border: 1.5px solid var(--ink); }
.promo__title { font-size: 20px; margin: 12px 0 6px; }
.promo__text { color: var(--ink-2); font-size: 14.5px; margin: 0 0 14px; }
.promo__btn { width: 100%; justify-content: center; }
.promo__note { color: var(--muted); font-size: 12px; margin: 10px 0 0; }
.prose .promo { margin: 2em 0 0; padding: 24px 26px; font-size: 16px; }
.prose .promo a.promo__btn { color: #fff; text-decoration: none; width: auto; }
.prose .promo__title { font-size: 24px; margin-top: 12px; }

/* SureForms */
.srfm-form .srfm-input-common { border: 2px solid var(--ink) !important; border-radius: 10px !important; background: var(--bg) !important; color: var(--ink) !important; padding: 10px 14px !important; }
.srfm-form textarea.srfm-input-common { min-height: 140px; }
.srfm-form .srfm-input-common:focus { outline: none; box-shadow: 0 0 0 3px var(--accent-soft) !important; border-color: var(--accent) !important; }
.srfm-form .srfm-submit-button { background: var(--accent) !important; color: #fff !important; border: 2px solid var(--ink) !important; border-radius: 10px !important; padding: 12px 24px !important; font-weight: 700 !important; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.srfm-form .srfm-submit-button:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }

/* 404 */
.not-found { text-align: center; padding: 70px 0; }
.not-found b { font: 800 clamp(90px, 18vw, 180px)/1 var(--font-head); color: var(--accent); display: block; }
.not-found .search-form { max-width: 520px; margin: 24px auto; }

@media (max-width: 760px) {
  .alignwide, .alignfull { margin-left: -20px; margin-right: -20px; }
}
