/*
Theme Name: ServerBD_v2
Theme URI: https://serverbd.net/
Author: Jewel Ahmmed
Author URI: https://serverbd.net/
Description: Custom WordPress theme for the ServerBD blog. Auto-detects the parent main-site URL and inherits the exact navigation header, footer, fonts, dark-mode toggle, WhatsApp chat widget and mobile menu from it by loading nav-footer.min.js. Domain-agnostic — works on any site where it is installed. Modern editorial blog layout with card-grid index, clean single-post template, sidebar, search and full SEO support (Open Graph + JSON-LD BlogPosting).
Version: 2.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: serverbd-v2
Tags: blog, custom-menu, footer-widgets, threaded-comments, translation-ready, two-columns, right-sidebar
*/

/* ============================================================
   Theme styles — most of the visual language comes from
   /assets/css/style.min.css on the main site (loaded via
   functions.php). This file holds anything WordPress-specific
   plus a few tiny resets so default WP elements don't break
   layout inside the inherited site frame.
============================================================ */

/* Make sure WordPress's auto-injected admin bar stays out of the nav */
html.wp-toolbar { padding-top: 32px !important; }
@media (max-width: 782px) {
  html.wp-toolbar { padding-top: 46px !important; }
}

/* Default link reset for blog body content (theme typography
   continues from main site CSS) */
.sbd-blog-body a { color: #021269; }
.sbd-blog-body a:hover { text-decoration: underline; }

/* WordPress core block alignments */
.alignleft   { float: left;  margin: 0 1.5rem 1rem 0; }
.alignright  { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 0 auto 1rem; }
.alignwide   { max-width: 100%; }
.alignfull   { width: 100vw; margin-left: calc(50% - 50vw); }

/* WP gallery + caption */
.wp-caption          { max-width: 100%; }
.wp-caption-text     { font-size: .85rem; color: #64748b; margin-top: .4rem; text-align: center; }
.gallery             { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin: 1.4rem 0; }
.gallery-item img    { width: 100%; height: auto; border-radius: 8px; }

/* Screen reader text (WP requirement) */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); -webkit-clip-path: inset(50%);
  clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute !important; width: 1px; word-wrap: normal;
}

/* Skip-to-content link (accessibility) */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; padding: .5rem 1rem; background: #021269; color: #fff; }
.skip-link:focus { left: 1rem; }

/* Sticky-element fix when WP admin bar present */
.admin-bar #navbar { top: 32px; }
@media (max-width: 782px) {
  .admin-bar #navbar { top: 46px; }
}
