/* =====================================================================
   WordPress-specific additions (not in the static design):
   admin bar offset, editor content, alignments, captions, pagination,
   footer legal links, skip link, hero media, post cards.
   ===================================================================== */

/* Sticky navbar sits below the admin bar when logged in */
.admin-bar .navbar-custom.sticky-top{top:32px}
@media (max-width:782px){.admin-bar .navbar-custom.sticky-top{top:46px}}
@media (max-width:600px){.admin-bar .navbar-custom.sticky-top{top:0}}

.skip-link:focus{position:fixed;top:8px;left:8px;z-index:3000;background:#fff;color:#0a2a66;padding:.6rem 1rem;border-radius:8px;box-shadow:0 6px 20px rgba(0,0,0,.2)}

/* Primary menu: active item */
.navbar-custom .nav-item.active>.nav-link,.sm-link.active{color:#1e7bff}

/* Footer legal links sit inline */
footer .foot-legal a{display:inline;margin:0}

/* Hero image (page-hero.php) */
.hero-media img,.hero-media .hero-img{width:100%;height:auto;border-radius:18px;box-shadow:0 24px 50px -20px rgba(0,8,30,.55);display:block}

/* Editor content */
.entry-content{font-size:1rem;line-height:1.8;color:#3d4f66}
.entry-content>*+*{margin-top:1.1rem}
.entry-content h2,.entry-content h3,.entry-content h4{color:#0b1220;font-weight:700;line-height:1.3;margin-top:2rem}
.entry-content a{color:#1e7bff;text-decoration:underline;text-underline-offset:2px}
.entry-content img{max-width:100%;height:auto;border-radius:12px}
.entry-content blockquote{border-left:3px solid #2f6bff;padding-left:1.1rem;color:#0b1220;font-weight:500}
.entry-content--full>*+*{margin-top:0}
.alignleft{float:left;margin:.3rem 1.5rem 1rem 0}
.alignright{float:right;margin:.3rem 0 1rem 1.5rem}
.aligncenter{display:block;margin-left:auto;margin-right:auto}
.wp-caption-text,.wp-element-caption{font-size:.85rem;color:#5b6678;margin-top:.4rem}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}

/* Post cards / meta */
.post-meta{font-size:.8rem;color:#5b6678;font-weight:600;margin-bottom:.4rem}
.experience-card .read-more{font-weight:600;color:#1e7bff;font-size:.9rem}
.post-tags a{display:inline-block;background:#eaf2ff;color:#0b2a6b;border-radius:999px;padding:.2rem .7rem;font-size:.8rem;margin:0 .3rem .3rem 0;text-decoration:none}

/* Pagination */
.pagination,.nav-links{display:flex;flex-wrap:wrap;gap:.4rem;justify-content:center;margin-top:2.5rem}
.page-numbers{display:inline-grid;place-items:center;min-width:40px;height:40px;padding:0 .6rem;border-radius:10px;border:1px solid #d8e4fa;color:#0a2a66;font-weight:600}
.page-numbers.current,.page-numbers:hover{background:#1e7bff;border-color:#1e7bff;color:#fff}
.post-navigation .nav-links{justify-content:space-between}

/* Search form outside the overlay */
.search-form .search-input-wrap{position:relative}

/* Contact page form result (inc/consult-form.php → satisfic_contact_notice) */
.ct-notice{margin:0 0 1.2rem;padding:.85rem 1.1rem;border-radius:12px;font-weight:600;font-size:.95rem}
.ct-notice.is-ok{background:#e9f8ef;color:#126b3a;border:1px solid #b9e6c9}
.ct-notice.is-error{background:#fdecec;color:#a12626;border:1px solid #f3c2c2}

/* =====================================================================
   Search: instant results (header overlay) + results page
   ===================================================================== */
.search-box{max-height:84vh;display:flex;flex-direction:column}
.search-live{overflow-y:auto;margin:0 -.4rem;padding:0 .4rem;transition:opacity .15s ease}
.search-live.is-loading{opacity:.55}
.search-live__list{list-style:none;margin:.9rem 0 0;padding:0;display:grid;gap:.25rem}
.search-live__item{display:block;padding:.65rem .8rem;border-radius:10px;color:#0b1220;text-decoration:none;border:1px solid transparent;transition:background .15s ease,border-color .15s ease}
.search-live__item:hover,.search-live__item:focus{background:#f3f7ff;border-color:#d8e4fa;outline:0}
.search-live__type{display:block;font-size:.68rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#1e7bff}
.search-live__title{display:block;font-size:.98rem;font-weight:700;margin:.1rem 0 .2rem}
.search-live__snippet{display:block;font-size:.82rem;line-height:1.5;color:#5b6678}
.search-live__empty{margin:.9rem .2rem 0;color:#5b6678;font-size:.9rem}
.search-live__all{display:inline-flex;align-items:center;gap:.35rem;margin:.6rem .8rem 0;font-weight:600;font-size:.88rem;color:#1e7bff;text-decoration:none}
.search-live__all:hover,.search-live__all:focus{text-decoration:underline;outline:0}
.search-live mark,.search-results mark{background:#fff1a8;color:inherit;padding:0 .1em;border-radius:3px}

.search-page-form{max-width:640px;margin:0 0 2.2rem}
.search-page-form .search-input-wrap{margin-top:0;background:#fff}
.search-results{list-style:none;margin:0;padding:0;display:grid;gap:1rem;max-width:860px}
.search-result__link{display:block;padding:1.25rem 1.4rem;border:1px solid #e3eaf6;border-radius:14px;background:#fff;color:#0b1220;text-decoration:none;box-shadow:0 8px 20px rgba(11,18,32,.04);transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease}
.search-result__link:hover,.search-result__link:focus{border-color:#9dbcff;box-shadow:0 14px 30px rgba(30,123,255,.12);transform:translateY(-2px);outline:0}
.search-result__type{display:block;font-size:.7rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#1e7bff;margin-bottom:.2rem}
.search-result__title{font-size:1.2rem;font-weight:700;margin:0 0 .35rem;color:#0b1220}
.search-result__snippet{font-size:.92rem;line-height:1.65;color:#5b6678;margin:0 0 .45rem}
.search-result__url{font-size:.78rem;color:#2f9e63}
.search-empty h2{font-size:1.4rem;font-weight:700}
.search-empty p{color:#5b6678}
.search-empty__links{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:1rem}
