/* ============================================================
   ServerBD_v2 — Blog-specific stylesheet
   Sits on top of the inherited /assets/css/style.min.css from
   the main site so blog templates match the brand exactly.
============================================================ */

/* ---------- Hero ---------- */
/* Background image URL is injected via inline <style> from PHP using
   --sbd-hero-bg CSS variable so the theme is domain-agnostic. */
.sbd-blog-hero{
  background:#021269 var(--sbd-hero-bg, none) no-repeat center right;
  background-size:cover;color:#fff;
  padding:7rem 1rem 3rem;position:relative;overflow:hidden;
  min-height:280px;display:flex;align-items:center;
}
.sbd-blog-hero::before{
  content:"";position:absolute;inset:0;
  background:linear-gradient(to right,
    rgba(2,18,105,.95) 0%,
    rgba(2,18,105,.78) 35%,
    rgba(2,18,105,.55) 60%,
    rgba(2,18,105,.35) 100%);
  pointer-events:none;z-index:1;
}
.sbd-blog-hero .container{max-width:1180px;margin:0 auto;width:100%;position:relative;z-index:2}
.sbd-blog-crumb{font-size:.82rem;color:rgba(255,255,255,.7);margin:0 0 .8rem}
.sbd-blog-crumb a{color:rgba(255,255,255,.85);text-decoration:none;font-weight:600}
.sbd-blog-crumb a:hover{color:#fbbf24}
.sbd-blog-crumb span{margin:0 .5rem;opacity:.5}
.sbd-blog-hero h1{
  font-size:clamp(1.9rem,3.4vw,2.6rem);font-weight:800;
  letter-spacing:-.025em;margin:0 0 .8rem;color:#fff;line-height:1.18;
}
.sbd-blog-hero h1 .gold{color:#fbbf24}
.sbd-blog-hero .lede{
  font-size:1rem;line-height:1.6;color:rgba(255,255,255,.85);
  margin:0;max-width:680px;font-weight:500;
}
.sbd-blog-hero-single h1{font-size:clamp(1.6rem,3vw,2.4rem)}

/* Post meta in hero (single) */
.sbd-post-meta{
  display:inline-flex;align-items:center;gap:.55rem;
  margin-top:1rem;font-size:.86rem;color:rgba(255,255,255,.78);font-weight:500;
}
.sbd-post-author{display:inline-flex;align-items:center;gap:.45rem}
.sbd-author-avatar{width:24px;height:24px;border-radius:50%;border:1.5px solid rgba(255,255,255,.3)}
.sbd-meta-dot{opacity:.5}

/* ---------- Body wrapper ---------- */
.sbd-blog-wrap{padding:3.5rem 1rem 4rem;background:#fff}
.sbd-blog-wrap .container{max-width:1180px;margin:0 auto}
.sbd-blog-layout{display:grid;grid-template-columns:1fr 300px;gap:3rem;align-items:start}
@media(max-width:900px){.sbd-blog-layout{grid-template-columns:1fr;gap:2.5rem}}

/* ---------- Card grid (index, archive, search) ---------- */
.sbd-card-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1.4rem;margin-bottom:2.5rem}
@media(max-width:680px){.sbd-card-grid{grid-template-columns:1fr;gap:1.1rem}}

.sbd-card{
  background:#fff;border:1.5px solid #e6ebf5;border-radius:14px;overflow:hidden;
  display:flex;flex-direction:column;
  transition:border-color .2s ease,box-shadow .2s ease;
}
.sbd-card-img{
  display:block;aspect-ratio:16/10;background:#eef3ff;overflow:hidden;
}
.sbd-card-img img{width:100%;height:100%;object-fit:cover;display:block}
.sbd-card-img-fallback{
  width:100%;height:100%;display:flex;align-items:center;justify-content:center;
  color:#94a3b8;
}
.sbd-card-img-fallback svg{width:40px;height:40px}
.sbd-card-body{padding:1.2rem 1.3rem 1.4rem;flex:1;display:flex;flex-direction:column;gap:.5rem}
.sbd-card-cat{
  display:inline-block;font-size:.7rem;font-weight:800;letter-spacing:.1em;
  text-transform:uppercase;color:#021269;background:#eef3ff;
  padding:.28rem .6rem;border-radius:5px;align-self:flex-start;
}
.sbd-card-title{
  font-size:1.15rem;font-weight:800;letter-spacing:-.015em;line-height:1.3;
  margin:0;color:#0f172a;
}
.sbd-card-title a{color:inherit;text-decoration:none}
.sbd-card-title a:hover{color:#021269}
.sbd-card-excerpt{font-size:.88rem;line-height:1.55;color:#64748b;margin:0;flex:1}
.sbd-card-meta{display:flex;align-items:center;gap:.45rem;font-size:.78rem;color:#94a3b8;margin-top:.55rem;font-weight:500}
.sbd-card-dot{opacity:.5}

/* Hero on single posts — title + breadcrumb below */
.sbd-blog-hero-single{
  padding:7rem 1rem 3rem !important;
  min-height:280px !important;
}
.sbd-blog-hero-single .sbd-blog-crumb{
  margin:.9rem 0 0 !important;
  order:2;
}
.sbd-hero-title{
  font-size:clamp(1.7rem,3.4vw,2.6rem) !important;
  font-weight:800 !important;
  letter-spacing:-.025em !important;
  line-height:1.18 !important;
  margin:0 !important;color:#fff !important;
  max-width:850px;
}
.sbd-hero-title .gold{color:#fbbf24 !important}

@media(max-width:900px){
  .sbd-blog-hero-single{padding:6rem 1rem 2.4rem !important;min-height:220px !important}
  .sbd-hero-title{font-size:1.5rem !important;line-height:1.25 !important}
}

/* ---------- Single post ---------- */
.sbd-post-cover{margin:0 0 2rem;border-radius:14px;overflow:hidden}
.sbd-post-cover img{width:100%;height:auto;display:block}

/* Pro editorial post header (inside white body area) */
.sbd-post-head{
  margin:0 0 2rem;padding:0 0 1.6rem;
  border-bottom:1px solid #f1f5f9;
}
.sbd-post-cat{
  display:inline-block;
  font-size:.7rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;
  color:#021269;background:#eef3ff;
  padding:.32rem .7rem;border-radius:5px;
  text-decoration:none;margin-bottom:1.1rem;
  transition:background .15s ease;
}
.sbd-post-cat:hover{background:#021269;color:#fff}
.sbd-post-title{
  font-size:clamp(1.6rem,3.2vw,2.4rem);
  font-weight:800;letter-spacing:-.025em;line-height:1.2;
  color:#0f172a;margin:0 0 1.2rem;
}
.sbd-post-head-meta{
  display:flex;align-items:center;gap:.7rem;
  font-size:.88rem;color:#64748b;
}
.sbd-post-head-avatar{
  width:36px;height:36px;border-radius:50%;
  border:1.5px solid #eef3ff;
}
.sbd-post-author-text{display:flex;flex-direction:column;line-height:1.3}
.sbd-post-author-name{font-weight:700;color:#0f172a;font-size:.92rem}
.sbd-post-author-meta{font-size:.78rem;color:#94a3b8;font-weight:500}

[data-theme="dark"] .sbd-post-head{border-bottom-color:#1e2a4f}
[data-theme="dark"] .sbd-post-title{color:#fff}
[data-theme="dark"] .sbd-post-author-name{color:#fff}
[data-theme="dark"] .sbd-post-author-meta{color:#64748b}
[data-theme="dark"] .sbd-post-cat{background:rgba(251,191,36,.12);color:#fbbf24}
[data-theme="dark"] .sbd-post-cat:hover{background:#fbbf24;color:#0a1330}
[data-theme="dark"] .sbd-post-head-avatar{border-color:#1e2a4f}
.sbd-post-content{
  font-size:1rem;line-height:1.75;color:#334155;
  font-family:'Inter',system-ui,-apple-system,sans-serif;
}
.sbd-post-content h2{font-size:1.5rem;font-weight:800;color:#0f172a;letter-spacing:-.02em;margin:2rem 0 .9rem;line-height:1.25}
.sbd-post-content h3{font-size:1.2rem;font-weight:800;color:#0f172a;letter-spacing:-.015em;margin:1.6rem 0 .7rem;line-height:1.3}
.sbd-post-content h4{font-size:1.05rem;font-weight:700;color:#0f172a;margin:1.4rem 0 .6rem}
.sbd-post-content p{margin:0 0 1.1rem}
.sbd-post-content a{color:#021269;font-weight:600;text-decoration:underline;text-underline-offset:2px}
.sbd-post-content a:hover{color:#011a91}
.sbd-post-content strong{color:#0f172a;font-weight:700}
.sbd-post-content em{font-style:italic}
.sbd-post-content blockquote{
  border-left:3px solid #021269;
  padding:.4rem 0 .4rem 1.2rem;margin:1.4rem 0;
  font-style:italic;color:#475569;
}
.sbd-post-content ul,.sbd-post-content ol{margin:0 0 1.2rem 1.3rem;padding:0}
.sbd-post-content ul li,.sbd-post-content ol li{margin-bottom:.45rem;line-height:1.65}
.sbd-post-content code{
  background:#eef3ff;color:#021269;
  padding:.1rem .35rem;border-radius:4px;font-size:.88em;
  font-family:'SFMono-Regular',Consolas,monospace;
}
.sbd-post-content pre{
  background:#0a1330;color:#e2e8f0;
  padding:1rem 1.2rem;border-radius:10px;
  overflow-x:auto;margin:1.3rem 0;font-size:.86rem;line-height:1.55;
  font-family:'SFMono-Regular',Consolas,monospace;
}
.sbd-post-content pre code{background:transparent;color:inherit;padding:0}
.sbd-post-content img{max-width:100%;height:auto;border-radius:10px;margin:1rem 0}
.sbd-post-content table{border-collapse:collapse;width:100%;margin:1.4rem 0;font-size:.92rem}
.sbd-post-content th,.sbd-post-content td{border:1px solid #e6ebf5;padding:.7rem .9rem;text-align:left}
.sbd-post-content th{background:#fafbff;font-weight:700;color:#0f172a}
.sbd-post-content hr{border:0;border-top:1px solid #e6ebf5;margin:2.2rem 0}

/* Tags */
.sbd-post-tags{
  margin-top:2rem;padding-top:1.5rem;border-top:1px dashed #e6ebf5;
  display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;
}
.sbd-post-tags-label{font-size:.7rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#94a3b8;margin-right:.3rem}
.sbd-post-tag{
  font-size:.82rem;font-weight:600;color:#021269;
  padding:.3rem .65rem;border-radius:6px;background:#eef3ff;
  text-decoration:none;
}
.sbd-post-tag:hover{background:#021269;color:#fff}

/* Author card */
.sbd-author-card{
  margin-top:2rem;padding:1.3rem 1.5rem;
  background:#fafbff;border:1.5px solid #e6ebf5;border-radius:12px;
  display:flex;align-items:flex-start;gap:1rem;
}
.sbd-author-card-avatar{width:56px;height:56px;border-radius:50%;flex-shrink:0}
.sbd-author-card-name{font-size:1rem;font-weight:800;color:#0f172a;display:block}
.sbd-author-card-bio{font-size:.88rem;line-height:1.6;color:#64748b;margin:.3rem 0 0}

/* Prev/next nav */
.sbd-post-nav{
  display:grid;grid-template-columns:1fr 1fr;gap:.9rem;margin-top:2rem;
}
@media(max-width:600px){.sbd-post-nav{grid-template-columns:1fr}}
.sbd-post-nav a{
  display:block;padding:.95rem 1.1rem;border:1.5px solid #e6ebf5;border-radius:10px;
  text-decoration:none;color:#0f172a;line-height:1.4;
  transition:border-color .15s ease;
}
.sbd-post-nav a:hover{border-color:#021269}
.sbd-post-nav .lbl{display:block;font-size:.72rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#94a3b8;margin-bottom:.25rem}
.sbd-post-nav .ttl{display:block;font-size:.92rem;font-weight:700;color:#0f172a}
.sbd-post-nav-next{text-align:right}

/* ---------- Sidebar ---------- */
.sbd-blog-sidebar{display:flex;flex-direction:column;gap:1.4rem;position:sticky;top:6rem}
@media(max-width:900px){.sbd-blog-sidebar{position:static;top:0}}
.sbd-widget{
  background:#fafbff;border:1.5px solid #e6ebf5;border-radius:12px;
  padding:1.2rem 1.3rem;
}
.sbd-widget-title{
  font-size:1.05rem;font-weight:800;letter-spacing:-.01em;text-transform:none;
  color:#021269;margin:0 0 1rem;padding:0 0 .65rem;
  position:relative;border:none;
}
.sbd-widget-title::after{
  content:"";position:absolute;left:0;bottom:0;
  width:32px;height:3px;
  background:linear-gradient(90deg,#fbbf24,#f59e0b);
  border-radius:2px;
}
/* Hide title for Search widget specifically (keep title for Recent Posts, Categories etc) */
.widget_search .sbd-widget-title,
aside.widget_search .sbd-widget-title,
.widget_search > h2:first-child,
.widget_search > h3:first-child,
.wp-block-search__label,
.widget_block:has(.wp-block-search) > .sbd-widget-title,
.widget_block:has(input[type="search"]) > .sbd-widget-title,
.sbd-widget:has(.wp-block-search) > .sbd-widget-title,
.sbd-widget:has(.sbd-search-form) > .sbd-widget-title,
.sbd-widget:has(form[role="search"]) > .sbd-widget-title{display:none!important}

/* ============================================================
   SEARCH FORM — works for ALL three variants:
   1. Our custom .sbd-search-form (sidebar.php fallback + 404)
   2. Legacy widget .search-form / .search-field / .search-submit
   3. Block editor widget .wp-block-search / .wp-block-search__input
   Single rounded pill: input flows into navy button on the right.
============================================================ */

/* Outer wrapper (pill container) */
.sbd-search-form,
.widget_search .search-form,
.wp-block-search .wp-block-search__inside-wrapper{
  display:flex !important;align-items:stretch !important;
  background:#fff !important;
  border:1.5px solid #d1d9e8 !important;
  border-radius:8px !important;
  overflow:hidden !important;
  margin:0 !important;padding:0 !important;
}
.sbd-search-form:focus-within,
.widget_search .search-form:focus-within,
.wp-block-search .wp-block-search__inside-wrapper:focus-within{
  border-color:#021269 !important;
  box-shadow:0 0 0 3px rgba(2,18,105,.12) !important;
}

/* Input — every search-input variant */
.sbd-search-form input[type="search"],
.sbd-search-form input[type="text"],
.widget_search .search-field,
.wp-block-search .wp-block-search__input{
  flex:1 1 auto !important;min-width:0 !important;width:auto !important;
  height:38px !important;box-sizing:border-box !important;
  border:0 !important;background:transparent !important;
  color:#021269 !important;
  padding:0 .9rem !important;
  font:inherit !important;font-size:.88rem !important;
  outline:none !important;
  border-radius:0 !important;
  box-shadow:none !important;
}
.sbd-search-form input::placeholder,
.widget_search .search-field::placeholder,
.wp-block-search .wp-block-search__input::placeholder{
  color:#94a3b8 !important;font-weight:500 !important;
}

/* Hide all WP-injected <label> wrappers so only input + button show */
.widget_search .search-form > label,
.wp-block-search > label,
.wp-block-search .wp-block-search__label{
  display:none !important;height:0 !important;margin:0 !important;
}

/* Submit button — every variant.
   Includes magnifying-glass icon via ::before so even text-only
   block buttons get the same look as the reference. */
.sbd-search-form button,
.sbd-search-form input[type="submit"],
.widget_search .search-submit,
.wp-block-search .wp-block-search__button{
  display:inline-flex !important;align-items:center !important;justify-content:center !important;
  gap:.4rem !important;
  background:#021269 !important;color:#fff !important;
  border:0 !important;outline:none !important;
  padding:0 1.1rem !important;
  height:38px !important;
  font:inherit !important;font-weight:700 !important;font-size:.85rem !important;
  letter-spacing:.01em !important;
  cursor:pointer !important;
  border-radius:0 !important;
  transition:background .15s ease !important;
  box-shadow:none !important;
}
.sbd-search-form button:hover,
.sbd-search-form input[type="submit"]:hover,
.widget_search .search-submit:hover,
.wp-block-search .wp-block-search__button:hover{
  background:#011a91 !important;
}

/* Magnifying-glass icon prepended to the WP submit button (which only has text) */
.widget_search .search-submit::before,
.wp-block-search .wp-block-search__button::before{
  content:"";display:inline-block;
  width:13px;height:13px;flex-shrink:0;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:center;background-size:contain;
}

/* Our custom .sbd-search-form already has SVG inline — keep that */
.sbd-search-form button svg{width:13px;height:13px;stroke-width:2.6;color:#fff}

/* Search widget title — HIDDEN by request */
.widget_search .widget-title,
.widget_search h2.widget-title,
.widget_search h3.widget-title,
.widget_search .sbd-widget-title,
.wp-block-search > .wp-block-search__label,
.wp-block-search__label,
form.wp-block-search > label,
.widget_search form > label{
  display:none !important;
  height:0 !important;
  margin:0 !important;
  padding:0 !important;
  visibility:hidden !important;
}

/* Dark-mode for all three variants */
[data-theme="dark"] .sbd-search-form,
[data-theme="dark"] .widget_search .search-form,
[data-theme="dark"] .wp-block-search .wp-block-search__inside-wrapper{
  background:#060d1f !important;border-color:#1e2a4f !important;
}
[data-theme="dark"] .sbd-search-form input,
[data-theme="dark"] .widget_search .search-field,
[data-theme="dark"] .wp-block-search .wp-block-search__input{color:#e2e8f0 !important}
[data-theme="dark"] .sbd-search-form:focus-within,
[data-theme="dark"] .widget_search .search-form:focus-within,
[data-theme="dark"] .wp-block-search .wp-block-search__inside-wrapper:focus-within{
  border-color:#fbbf24 !important;box-shadow:0 0 0 3px rgba(251,191,36,.15) !important;
}
[data-theme="dark"] .sbd-search-form button,
[data-theme="dark"] .sbd-search-form input[type="submit"],
[data-theme="dark"] .widget_search .search-submit,
[data-theme="dark"] .wp-block-search .wp-block-search__button{
  background:#fbbf24 !important;color:#0a1330 !important;
}
[data-theme="dark"] .sbd-search-form button:hover,
[data-theme="dark"] .widget_search .search-submit:hover,
[data-theme="dark"] .wp-block-search .wp-block-search__button:hover{background:#fcd34d !important}
[data-theme="dark"] .widget_search .search-submit::before,
[data-theme="dark"] .wp-block-search .wp-block-search__button::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1330' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
}

/* Recent posts */
.sbd-recent-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.5rem}
.sbd-recent-item{display:flex;gap:.85rem;align-items:flex-start;text-decoration:none;color:inherit;padding:.6rem;border-radius:9px;transition:background .2s ease,transform .2s ease}
.sbd-recent-item:hover{background:#eef3ff}
.sbd-recent-thumb{width:60px;height:60px;border-radius:8px;overflow:hidden;flex-shrink:0;background:#eef3ff;box-shadow:0 1px 3px rgba(2,18,105,.06)}
.sbd-recent-thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s ease}
.sbd-recent-item:hover .sbd-recent-thumb img{transform:scale(1.06)}
.sbd-recent-text{display:flex;flex-direction:column;gap:.25rem;flex:1;min-width:0}
.sbd-recent-title{font-size:.92rem;font-weight:600;color:#0f172a;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;letter-spacing:-.005em}
.sbd-recent-item:hover .sbd-recent-title{color:#021269}
.sbd-recent-date{font-size:.75rem;color:#94a3b8;font-weight:500;display:flex;align-items:center;gap:.3rem}
.sbd-recent-date::before{content:"";width:4px;height:4px;border-radius:50%;background:#fbbf24;display:inline-block}

/* Categories */
.sbd-cat-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.15rem}
.sbd-cat-list a{
  display:flex;justify-content:space-between;align-items:center;
  padding:.5rem .7rem;font-size:.86rem;font-weight:600;
  color:#475569;text-decoration:none;border-radius:6px;
}
.sbd-cat-list a:hover{background:#eef3ff;color:#021269}
.sbd-cat-count{font-size:.72rem;color:#94a3b8;background:#fff;padding:.18rem .45rem;border-radius:99px;font-weight:700}

/* ---------- Pagination ---------- */
.sbd-pagination{display:flex;justify-content:center;gap:.4rem;margin-top:2.5rem;flex-wrap:wrap}
.sbd-pagination .page-numbers{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:38px;height:38px;padding:0 .85rem;
  font-size:.88rem;font-weight:700;color:#475569;
  background:#fff;border:1.5px solid #e6ebf5;border-radius:8px;
  text-decoration:none;transition:background .15s,border-color .15s,color .15s;
}
.sbd-pagination .page-numbers:hover{border-color:#021269;color:#021269}
.sbd-pagination .page-numbers.current{background:#021269;color:#fff;border-color:#021269}

/* ---------- Empty / 404 ---------- */
.sbd-empty{
  background:#fafbff;border:1.5px solid #e6ebf5;border-radius:12px;
  padding:2.5rem 2rem;text-align:center;
}
.sbd-empty h2{font-size:1.3rem;font-weight:800;color:#0f172a;margin:0 0 .5rem}
.sbd-empty p{color:#64748b;font-size:.95rem;margin:0 0 1.2rem}
.sbd-empty-actions{display:flex;justify-content:center;gap:.6rem;flex-wrap:wrap}
.sbd-empty-actions a{
  display:inline-flex;align-items:center;gap:.4rem;
  padding:.55rem 1.1rem;border-radius:8px;
  font-size:.88rem;font-weight:700;text-decoration:none;
}
.sbd-btn-primary{background:#021269;color:#fff!important}
.sbd-btn-primary:hover{background:#011a91}
.sbd-btn-outline{background:transparent;color:#021269!important;border:1.5px solid #021269}
.sbd-btn-outline:hover{background:#eef3ff}

/* ---------- Comments ---------- */
.sbd-comments{margin-top:2.5rem;padding-top:2rem;border-top:1px dashed #e6ebf5}
.sbd-comments-title{font-size:1.15rem;font-weight:800;color:#0f172a;margin:0 0 1.2rem;letter-spacing:-.015em}
.sbd-comments-list{list-style:none;padding:0;margin:0 0 1.5rem}
.sbd-comments-list .comment{
  background:#fafbff;border:1px solid #e6ebf5;border-radius:10px;
  padding:1rem 1.2rem;margin-bottom:.7rem;
}
.sbd-comments-list .comment-author{font-weight:700;color:#0f172a;font-size:.92rem}
.sbd-comments-list .comment-meta{font-size:.76rem;color:#94a3b8;margin-bottom:.4rem}
.sbd-comments-list .comment-content{font-size:.92rem;line-height:1.6;color:#475569}
.sbd-comments-list .children{list-style:none;padding-left:1rem;margin-top:.7rem;border-left:2px solid #e6ebf5}
.sbd-comment-form{margin-top:1rem}
.sbd-comment-form input,.sbd-comment-form textarea{
  width:100%;border:1.5px solid #d1d9e8;border-radius:8px;
  padding:.6rem .85rem;font:inherit;font-size:.9rem;color:#021269;
  background:#fff;outline:none;margin-bottom:.7rem;
}
.sbd-comment-form input:focus,.sbd-comment-form textarea:focus{border-color:#021269;box-shadow:0 0 0 3px rgba(2,18,105,.12)}
.sbd-comment-form .submit{
  background:#021269;color:#fff;border:0;padding:.6rem 1.4rem;
  border-radius:8px;font:inherit;font-weight:700;font-size:.88rem;cursor:pointer;
}
.sbd-comment-form .submit:hover{background:#011a91}

/* ---------- Dark mode ---------- */
[data-theme="dark"] .sbd-blog-wrap{background:#060d1f}
[data-theme="dark"] .sbd-card{background:#0a1330;border-color:#1e2a4f}
[data-theme="dark"] .sbd-card-img{background:#1e2a4f}
[data-theme="dark"] .sbd-card-cat{background:rgba(251,191,36,.12);color:#fbbf24}
[data-theme="dark"] .sbd-card-title{color:#fff}
[data-theme="dark"] .sbd-card-title a:hover{color:#fbbf24}
[data-theme="dark"] .sbd-card-excerpt{color:#94a3b8}
[data-theme="dark"] .sbd-card-meta{color:#64748b}
[data-theme="dark"] .sbd-post-content{color:#cbd5e1}
[data-theme="dark"] .sbd-post-content h2,
[data-theme="dark"] .sbd-post-content h3,
[data-theme="dark"] .sbd-post-content h4{color:#fff}
[data-theme="dark"] .sbd-post-content a{color:#fbbf24}
[data-theme="dark"] .sbd-post-content code{background:#1e2a4f;color:#fbbf24}
[data-theme="dark"] .sbd-post-content blockquote{border-left-color:#fbbf24;color:#94a3b8}
[data-theme="dark"] .sbd-post-content table th{background:#0a1330;color:#fff}
[data-theme="dark"] .sbd-post-content table th,
[data-theme="dark"] .sbd-post-content table td{border-color:#1e2a4f}
[data-theme="dark"] .sbd-post-content hr{border-color:#1e2a4f}
[data-theme="dark"] .sbd-post-tags{border-top-color:#1e2a4f}
[data-theme="dark"] .sbd-post-tag{background:rgba(251,191,36,.12);color:#fbbf24}
[data-theme="dark"] .sbd-post-tag:hover{background:#fbbf24;color:#0a1330}
[data-theme="dark"] .sbd-author-card{background:#0a1330;border-color:#1e2a4f}
[data-theme="dark"] .sbd-author-card-name{color:#fff}
[data-theme="dark"] .sbd-author-card-bio{color:#94a3b8}
[data-theme="dark"] .sbd-post-nav a{border-color:#1e2a4f}
[data-theme="dark"] .sbd-post-nav a:hover{border-color:#fbbf24}
[data-theme="dark"] .sbd-post-nav .ttl{color:#fff}
[data-theme="dark"] .sbd-widget{background:#0a1330;border-color:#1e2a4f}
[data-theme="dark"] .sbd-recent-item:hover{background:#1e2a4f}
[data-theme="dark"] .sbd-recent-title{color:#fff}
[data-theme="dark"] .sbd-recent-thumb{background:#1e2a4f}
[data-theme="dark"] .sbd-cat-list a{color:#cbd5e1}
[data-theme="dark"] .sbd-cat-list a:hover{background:#1e2a4f;color:#fbbf24}
[data-theme="dark"] .sbd-cat-count{background:#1e2a4f;color:#94a3b8}
[data-theme="dark"] .sbd-search-form{background:#060d1f;border-color:#1e2a4f}
[data-theme="dark"] .sbd-search-form input{color:#e2e8f0}
[data-theme="dark"] .sbd-search-form:focus-within{border-color:#fbbf24;box-shadow:0 0 0 3px rgba(251,191,36,.15)}
[data-theme="dark"] .sbd-search-form button{background:#fbbf24;color:#0a1330}
[data-theme="dark"] .sbd-search-form button:hover{background:#fcd34d}
[data-theme="dark"] .sbd-pagination .page-numbers{background:#0a1330;border-color:#1e2a4f;color:#cbd5e1}
[data-theme="dark"] .sbd-pagination .page-numbers:hover{border-color:#fbbf24;color:#fbbf24}
[data-theme="dark"] .sbd-pagination .page-numbers.current{background:#fbbf24;color:#0a1330;border-color:#fbbf24}
[data-theme="dark"] .sbd-empty{background:#0a1330;border-color:#1e2a4f}
[data-theme="dark"] .sbd-empty h2{color:#fff}
[data-theme="dark"] .sbd-empty p{color:#94a3b8}
[data-theme="dark"] .sbd-comments{border-top-color:#1e2a4f}
[data-theme="dark"] .sbd-comments-title{color:#fff}
[data-theme="dark"] .sbd-comments-list .comment{background:#0a1330;border-color:#1e2a4f}
[data-theme="dark"] .sbd-comments-list .comment-author{color:#fff}
[data-theme="dark"] .sbd-comments-list .comment-content{color:#cbd5e1}
[data-theme="dark"] .sbd-comments-list .children{border-left-color:#1e2a4f}
[data-theme="dark"] .sbd-comment-form input,
[data-theme="dark"] .sbd-comment-form textarea{background:#060d1f;border-color:#1e2a4f;color:#e2e8f0}
[data-theme="dark"] .sbd-comment-form input:focus,
[data-theme="dark"] .sbd-comment-form textarea:focus{border-color:#fbbf24;box-shadow:0 0 0 3px rgba(251,191,36,.15)}
[data-theme="dark"] .sbd-comment-form .submit{background:#fbbf24;color:#0a1330}
[data-theme="dark"] .sbd-comment-form .submit:hover{background:#fcd34d}
