/* WordPress-specific styles */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.logo--custom img { max-height: 52px; width: auto; }

/* Project filter */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.filters button { font: inherit; font-size: 15px; font-weight: 500; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink-2); }
.filters button.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.card[hidden] { display: none; }

/* Form states */
.form__alert { padding: 14px 16px; border-radius: 10px; margin-bottom: 18px; font-size: 15px; }
.form__alert--ok { background: #e8f7ee; color: #146c3a; }
.form__alert--err { background: #fdecec; color: #a12020; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field input[type=file] { padding: 10px; background: #fff; }
.field small { color: var(--ink-3); font-size: 13px; }

/* Post listing */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
a.card__img { display: block; }
.card h3 a:hover { color: var(--sky-2); }
a.card__img.card__img--empty { display: grid; place-items: center; background: linear-gradient(135deg, var(--navy), var(--sky)); color: rgba(255,255,255,.5); font-weight: 800; font-size: 28px; letter-spacing: .1em; }
.card time { font-size: 13px; color: var(--ink-3); margin-bottom: 6px; display: block; }
.card .more { margin-top: auto; padding-top: 14px; font-weight: 600; color: var(--sky-2); font-size: 15px; }

.pagination { margin-top: 48px; display: flex; justify-content: center; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; color: var(--ink-2); }
.pagination .page-numbers.current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Single post / generic page */
.article { max-width: 820px; margin: 0 auto; }
.article__meta { color: var(--ink-3); font-size: 15px; }
.article__thumb { margin: -40px auto 40px; max-width: 980px; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); position: relative; z-index: 2; }
.entry { font-size: 17px; color: var(--ink); }
.entry h2 { font-size: 28px; margin-top: 1.6em; }
.entry h3 { font-size: 22px; margin-top: 1.4em; }
.entry a { color: var(--sky-2); text-decoration: underline; }
.entry ul, .entry ol { padding-left: 1.4em; margin: 0 0 1em; }
.entry ul { list-style: disc; }
.entry ol { list-style: decimal; }
.entry li { margin-bottom: .4em; }
.entry img { border-radius: 12px; height: auto; }
.entry table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.entry th, .entry td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.entry th { background: var(--bg-2); }
.entry blockquote { margin: 1.5em 0; padding: 16px 24px; border-left: 4px solid var(--sky-2); background: var(--sky-50); border-radius: 0 10px 10px 0; }
.entry .alignleft { float: left; margin: 0 24px 16px 0; }
.entry .alignright { float: right; margin: 0 0 16px 24px; }
.entry .aligncenter { margin-left: auto; margin-right: auto; }
.entry .alignwide { margin-left: -80px; margin-right: -80px; max-width: none; }
.entry .wp-caption-text, .entry figcaption { font-size: 14px; color: var(--ink-3); text-align: center; margin-top: 8px; }
.post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.post-nav a { font-weight: 600; color: var(--sky-2); max-width: 48%; }

@media (max-width: 960px) {
  .post-grid { grid-template-columns: 1fr 1fr; }
  .entry .alignwide { margin-left: 0; margin-right: 0; }
}
@media (max-width: 600px) {
  .post-grid { grid-template-columns: 1fr; }
  .article__thumb { margin-top: -24px; }
}
