/*
Theme Name: Necromerchant
Description: Custom Theme for Cyberia
Version: 4.3
Text Domain: necromerchant
*/

/* ===== Base ===== */
* { box-sizing: border-box; }

body {
  margin: 0;
  background: #d6d6d6;
}

a { color: #0b57d0; }
a:hover { text-decoration: underline; }

.nm-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 6px;
}

.site-content {
  background: #fff;
  border: 1px solid #bdbdbd;
  padding: 6px;
}

/* ===== Header image (must sit on nav bar) ===== */
.nm-header-image img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #2b4f73;
  border-bottom: 0;          /* fuse with nav */
  margin: 0;                 /* no gap */
}

/* ===== Top nav “buttons” bar ===== */
.nm-topnav {
  margin: 0 0 8px;           /* no gap above; small space below */
  border: 1px solid #2b4f73;
  background: linear-gradient(#4e7fb0, #2f5f8f);
}

.nm-topnav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

.nm-topnav-list li { margin: 0; }

.nm-topnav-list a {
  display: block;
  padding: 9px 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-right: 1px solid rgba(255,255,255,0.22);
}

.nm-topnav-list li:last-child a { border-right: 0; }

.nm-topnav-list .current-menu-item > a,
.nm-topnav-list .current_page_item > a {
  background: rgba(255,255,255,0.18);
}

/* ===== 3-column grid ===== */
.nm-grid {
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  gap: 10px;
  align-items: start;
}

.nm-col-left   { grid-column: 1; }
.nm-col-content{ grid-column: 2; }
.nm-col-right  { grid-column: 3; }

@media (max-width: 820px) {
  .nm-grid{
    grid-template-columns: 1fr;
    grid-template-areas:
      "content"
      "left"
      "right";
  }
  .nm-col-content{ grid-area: content; }
  .nm-col-left{ grid-area: left; }
  .nm-col-right{ grid-area: right; }
}


/* ===== Post teaser list ===== */
.nm-teaser {
  padding: 6px 0;
  border-bottom: 1px solid #e2e2e2;
}

.nm-teaser-title {
  margin: 0 0 3px 0;
  font-size: 17px;
  line-height: 1.2;
}

.nm-teaser-meta {
  font-size: 12px;
  color: #555;
}

.nm-sep { margin: 0 4px; opacity: 0.8; }

/* ===== Middle injected widgets block (after 5 posts) ===== */
.nm-home-middle {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #9fa7ad;
  background: #f2f5f8;
}

/* ===== Widget chrome (Digg boxes) ===== */
.nm-widget {
  border: 1px solid #c9c9c9;
  background: #fff;
  margin-bottom: 12px;
}

.nm-widget-title {
  margin: 0;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(#f7f7f7, #e4e4e4);
  border-bottom: 1px solid #c9c9c9;
}

.nm-widget > *:not(.nm-widget-title) {
  padding: 10px;
}

/* ===== Footer ===== */
.site-footer .site-info {
  text-align: center;
  font-size: 13px;
  padding: 6px 0;
}

.widget_links ul.xoxo,
.widget_links ul.blogroll,
ul.xoxo.blogroll {
  list-style: none !important;
  margin: 0 !important;
  padding-left: 0 !important;
}

.widget_links ul.xoxo.blogroll li {
  list-style: none !important;
  margin: 9px;
  padding: 1px 0;
}

/* ===== Single post / page content styling ===== */

.site-main {
  min-width: 0; /* prevents overflow in grid */
}

.entry-title {
  margin: 6px 0 8px;
  font-size: 30px;
  line-height: 1.1;
}

.entry-meta {
  font-size: 12px;
  color: #555;
  margin: 0 0 12px;
  padding: 6px 8px;
  background: #f6f6f6;
  border: 1px solid #e2e2e2;
}

.entry-content {
  font-size: 15px;
  line-height: 1.6;
}

.entry-content p {
  margin: 0 0 12px;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin: 18px 0 8px;
  line-height: 1.2;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 12px 18px;
}

.entry-content img,
.entry-content video,
.entry-content iframe {
  max-width: 100%;
  height: auto;
}

/* ===== Comments: make it fit the theme ===== */

.comments-area {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid #e2e2e2;
}

.comments-title,
.comment-reply-title {
  margin: 0 0 10px;
  font-size: 18px;
}

.comment-form {
  margin-top: 8px;
}

.comment-form p {
  margin: 0 0 10px;
}

.comment-form label {
  display: block;
  font-size: 12px;
  color: #333;
  margin-bottom: 4px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid #bdbdbd;
  padding: 8px;
  font-size: 14px;
  background: #fff;
}

.comment-form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-submit {
  margin-top: 10px;
}

.comment-form input[type="submit"] {
  border: 1px solid #2b4f73;
  background: linear-gradient(#4e7fb0, #2f5f8f);
  color: #fff;
  padding: 7px 12px;
  font-weight: 700;
  cursor: pointer;
}

.comment-form input[type="submit"]:hover {
  filter: brightness(1.05);
}

/* ===== Post navigation (next/prev) ===== */
.post-navigation {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid #e2e2e2;
}

.post-navigation a {
  text-decoration: none;
  font-weight: 700;
}

/*

/* Home headline strip (Digg-era contrast) */
.nm-teaser {
  padding: 0;
  border-bottom: 1px solid #e2e2e2;
  margin-bottom: 6px;
}

.nm-teaser-title {
  margin: 0;
}

.nm-teaser-title a {
  display: block;
  padding: 8px 10px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;

  background: linear-gradient(#f7f7f7, #e7e7e7);
  border: 1px solid #c9c9c9;
  border-bottom: 0; /* connects to meta strip */
  color: #0b57d0;
}

.nm-teaser-title a:hover {
  filter: brightness(1.02);
  text-decoration: underline;
}

/* Meta strip under title */
.nm-teaser-meta {
  padding: 6px 10px 8px;
  font-size: 12px;
  color: #555;

  background: #fbfbfb;
  border: 1px solid #c9c9c9;
  border-top: 0;
}

.nm-teaser-meta a {
  color: inherit;
  text-decoration: none;
}

.nm-teaser-meta a:hover {
  text-decoration: underline;
}

.nm-sep {
  margin: 0 6px;
  opacity: 0.7;
}


/* MORE CODE*

/* ===== Comments: make them flow like the rest of the theme ===== */

.comments-area {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid #e2e2e2;
}

.comments-title,
.comment-reply-title {
  margin: 0 0 10px;
  font-size: 18px;
}

/* Kill default numbered list look */
.comment-list,
.comment-list ol,
.comment-list ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Each comment as a box */
.comment-list > li,
.comment-list .comment {
  border: 1px solid #c9c9c9;
  background: #fff;
  margin: 0 0 10px;
  padding: 10px;
}

/* Reply indentation */
.comment-list .children {
  margin-top: 10px !important;
  padding-left: 18px !important;
  border-left: 3px solid #e2e2e2;
}

/* Header line: author + date */
.comment-meta {
  margin-bottom: 8px;
  font-size: 12px;
  color: #666;
}

.comment-author {
  font-weight: 700;
  color: #222;
}

.comment-metadata a {
  color: inherit;
  text-decoration: none;
}

.comment-metadata a:hover {
  text-decoration: underline;
}

/* Avatar alignment */
.comment-author .avatar {
  float: left;
  margin: 0 10px 0 0;
  border-radius: 2px;
}

/* Body text spacing */
.comment-content {
  clear: both;
  margin-top: 6px;
  line-height: 1.55;
}

.comment-content p {
  margin: 0 0 10px;
}

/* Reply link: make it look like a small action */
.reply {
  margin-top: 8px;
}

.reply a {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  padding: 4px 8px;
  border: 1px solid #2b4f73;
  background: #f6f6f6;
}

.reply a:hover {
  background: #eef3f8;
}

/* Logged-in line / notes */
.logged-in-as,
.comment-notes {
  font-size: 12px;
  color: #666;
}

.comment-meta {
  padding-bottom: 6px;
  border-bottom: 1px solid #eaeaea;
}


.page-header .page-title {
  margin: 6px 0 12px;
  font-size: 24px;
  line-height: 1.1;
}

.archive-description {
  font-size: 13px;
  color: #666;
  margin: -6px 0 12px;
}

.nm-title-row{
  display:flex;
  align-items:flex-start;
  gap:12px;
}

.nm-title-row .entry-title{
  flex:1;
  margin: 6px 0 8px;
}

.nm-post-avatar{
  width:80px;
  height:80px;
  object-fit:cover;
  border:1px solid #c9c9c9;
  background:#fff;
}


/* ===== Single post header: match homepage strip + hanging icon ===== */

.single .entry-header{
  margin: 0 0 12px;
}

/* Make the title row become the strip */
.single .nm-title-row{
  position: relative;
  display: block;                 /* override flex */
  padding: 10px 110px 10px 12px;  /* right padding reserves space for icon */
  background: linear-gradient(#f7f7f7, #e7e7e7);
  border: 1px solid #c9c9c9;
  border-bottom: 0;               /* connects to meta strip */
}

/* Title text inside the strip */
.single .nm-title-row .entry-title{
  margin: 0;
  font-size: 34px;
  line-height: 1.05;
}

/* Meta strip under title (same “card” behavior as homepage) */
.single .entry-header .entry-meta{
  margin: 0;
  padding: 8px 12px;
  font-size: 12px;
  color: #555;
  background: #fbfbfb;
  border: 1px solid #c9c9c9;
  border-top: 0;
}

/* Icon: hangs over the strip */
.single .nm-post-avatar{
  position: absolute;
  right: 10px;
  top: -14px;        /* negative makes it “hang” */
  width: 96px;
  height: 96px;
  object-fit: contain;            /* IMPORTANT for transparent PNGs */
  background: transparent;
  border: 0;
  padding: 0;
  z-index: 2;

  /* optional: slight pop so it reads on gradients */
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.25));
}

/* --- Fix hanging icon layout on single posts --- */
/* --- Single post: keep icon attached to the title strip --- */
.single .nm-title-row{
  padding: 18px 130px 12px 14px !important; /* more top padding, reserve right space */
}

/* Icon sits on the strip, slightly overlapping upward but still attached */
.single .nm-title-row .nm-post-avatar{
  right: 5px !important;
  top: 3px !important;       /* <= key change: was negative */
  width: 96px !important;
  height: 96px !important;
}


/* single post

/* Single posts: hide sidebars + make content full width (better for reading/printing) */
.single .nm-grid {
  grid-template-columns: 1fr !important;
}

.single .nm-col-left,
.single .nm-col-right {
  display: none !important;
}

.single .nm-col-content {
  grid-column: 1 / -1 !important;
}

@media print {
  .nm-topnav,
  .nm-col-left,
  .nm-col-right,
  .site-footer {
    display: none !important;
  }

  .nm-wrap,
  .site-content {
    max-width: none !important;
    border: 0 !important;
    padding: 0 !important;
  }

  a { color: #000 !important; text-decoration: none !important; }
}

/* HOME PAGE

/* Home list: title strip + hanging-ish icon */
.home .nm-teaser-head{
  position: relative;
  padding-right: 92px; /* space for icon */
  background: linear-gradient(#f7f7f7,#e7e7e7);
  border: 1px solid #c9c9c9;
  border-bottom: 0;
}

.home .nm-teaser-title{
  margin: 0;
  font-size: 18px;
}

.home .nm-teaser-title a{
  display:block;
  padding: 10px 12px;
  text-decoration: none;
  font-weight: 800;
}

.home .nm-teaser-meta{
  margin: 0 0 10px;
  padding: 7px 12px 9px;
  background: #fbfbfb;
  border: 1px solid #c9c9c9;
  border-top: 0;
  font-size: 12px;
  color: #555;
}

/* icon on right */
.home .nm-teaser-avatar{
  position:absolute;
  right: 10px;
  top: 6px;
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: transparent;
  border: 0;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.25));
}

/* Home teaser: eliminate border seam / stray line */
.home .nm-teaser {
  border: 0;
}

.home .nm-teaser-head,
.home .nm-teaser-meta {
  border-left: 1px solid #c9c9c9;
  border-right: 1px solid #c9c9c9;
}

/* top strip owns the top border */
.home .nm-teaser-head {
  border-top: 1px solid #c9c9c9;
  border-bottom: 0;
}

/* bottom strip owns the bottom border */
.home .nm-teaser-meta {
  border-top: 0;
  border-bottom: 1px solid #c9c9c9;
  margin-bottom: 10px;
}

/* ensure the title link itself isn't adding a border */
.home .nm-teaser-title a {
  border: 0 !important;
}

/* Entry footer spacing + make edit link not glue to categories */
.entry-footer {
  margin-top: 12px;
}

.entry-footer .cat-links a,
.entry-footer .tags-links a {
  margin-right: 6px;
}

.entry-footer .edit-link {
  margin-left: 10px;
}

/* Optional: tone it down visually */
.entry-footer {
  font-size: 12px;
  color: #666;
}


/* Home: do NOT waste space unless icon exists */
.home .nm-teaser-head{ padding-right: 12px !important; }
.home .nm-teaser-head.has-avatar{ padding-right: 92px !important; }

/* Home icon: centered but slightly lower (without breaking layout) */
.home .nm-teaser-avatar{
  position: absolute !important;
  right: 10px !important;
  top: 55% !important;
  transform: translateY(-50%);
  margin-top: 12px;              /* tweak this (4–10px) */

  width: 64px !important;
  height: 64px !important;

  object-fit: contain;          /* good for emblems */
  background: transparent;
  border: 0;
  padding: 0;

  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.25));
}

.single .nm-title-row{ padding-right: 14px !important; }
.single .nm-title-row.has-avatar{ padding-right: 130px !important; }


/* POST */

.single .nm-article-card{
  max-width: 760px;
  margin: 0 auto 18px;
  border: 1px solid #c9c9c9;
  background: #fff;
}

.single .nm-article-card .entry-header{
  margin: 0;
}

.single .nm-article-card .entry-content{
  border: 0;
  padding: 14px 16px;
}

/* ===== Comments: clean “Discussion” module ===== */

.single .nm-comments{
  max-width: 760px;
  margin: 0 auto 24px;
  padding: 0;
  background: #fbfbfb;
  border: 1px solid #c9c9c9;
}

.single .nm-comments-head{
  padding: 10px 12px;
  background: linear-gradient(#f7f7f7,#e7e7e7);
  border-bottom: 1px solid #c9c9c9;
}

.single .nm-comments-title{
  margin: 0;
  font-size: 18px;
}

.single .nm-comment-list{
  list-style: none;
  margin: 0;
  padding: 12px;
}

/* Each comment becomes a card */
.single .nm-comment-list .comment{
  list-style: none;
  margin: 0 0 12px;
  padding: 12px;
  background: #fff;
  border: 1px solid #c9c9c9;
}

/* Comment header line (author + date) */
.single .nm-comment-list .comment .comment-metadata,
.single .nm-comment-list .comment .comment-author{
  font-size: 12px;
  color: #555;
}

.single .nm-comment-list .comment .comment-author .fn{
  font-weight: 700;
}

/* Body spacing */
.single .nm-comment-list .comment .comment-content{
  margin-top: 8px;
  line-height: 1.55;
}

/* Reply link / actions */
.single .nm-comment-list .reply{
  margin-top: 10px;
}
.single .nm-comment-list .reply a{
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid #9fa7ad;
  background: #f7f7f7;
  text-decoration: none;
  font-size: 12px;
}
.single .nm-comment-list .reply a:hover{
  text-decoration: underline;
}

/* Nested replies: clean thread indentation + left bar */
.single .nm-comment-list .children{
  list-style: none;
  margin: 12px 0 0;
  padding: 0 0 0 14px;
  border-left: 3px solid #d5dbe1;
}

/* Comment form styling */
.single .comment-respond{
  padding: 12px;
  border-top: 1px solid #c9c9c9;
  background: #fbfbfb;
}

.single .nm-reply-title{
  margin: 0 0 10px;
  font-size: 18px;
}

.single .comment-form textarea,
.single .comment-form input[type="text"],
.single .comment-form input[type="email"],
.single .comment-form input[type="url"]{
  width: 100%;
  max-width: 100%;
  border: 1px solid #c9c9c9;
  padding: 8px;
  box-sizing: border-box;
}

.single .nm-btn,
.single .comment-form input[type="submit"]{
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid #2f5f88;
  background: linear-gradient(#4f86b7,#356b9a);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

/* Single posts: style the entry footer like a small meta bar */
.single .entry-footer{
  max-width: 760px;
  margin: 0 auto 14px;
  padding: 8px 12px;
  background: #fbfbfb;
  border: 1px solid #c9c9c9;
  font-size: 12px;
  color: #555;
}

.single .entry-footer a{
  margin-right: 6px;
}
.single .entry-footer .edit-link{
  margin-left: 10px;
}

/* ===== Responsive embeds (YouTube, Vimeo, etc.) ===== */

/* WP wrap + generic safety */
.entry-content iframe,
.entry-content embed,
.entry-content object{
  max-width: 100% !important;
}

/* WordPress oEmbed wrapper (often used) */
.entry-content .wp-block-embed,
.entry-content .wp-embed-responsive{
  max-width: 100%;
}

/* Make classic oEmbed containers responsive */
.entry-content .wp-block-embed__wrapper,
.entry-content .embed-container,
.entry-content .video-container{
  position: relative;
  width: 100%;
  max-width: 100%;
}

/* The most reliable: target the actual oEmbed HTML WP outputs */
.entry-content .wp-block-embed__wrapper iframe,
.entry-content iframe[src*="youtube.com"],
.entry-content iframe[src*="youtu.be"],
.entry-content iframe[src*="vimeo.com"]{
  display: block;
  width: 100% !important;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
}

/* ========== Bring back text wrapping around images ========== */

/* Don’t let the post body create a float-killing formatting context */
.single .entry-content{
  overflow: visible !important;
}

/* Classic editor images: allow wrap */
.entry-content img{
  max-width: 100%;
  height: auto;
}

/* If you’re using alignleft/alignright in the editor */
.entry-content .alignleft{
  float: left;
  margin: 0 18px 12px 0;
}

.entry-content .alignright{
  float: right;
  margin: 0 0 12px 18px;
}

.entry-content .aligncenter{
  display: block;
  margin: 12px auto;
}

/* Make sure WordPress figure blocks don’t force full-width */
.entry-content figure,
.entry-content .wp-caption{
  display: inline-block;
  max-width: 100%;
}

/* Keep captions readable */
.entry-content .wp-caption-text{
  font-size: 12px;
  color: #666;
  margin-top: 6px;
}
/* ===== Fix floated images spilling past the article ===== */

/* Clear floats inside the post body */
.single .entry-content::after{
  content: "";
  display: table;
  clear: both;
}

/* Force anything after the content (cats + comments) to start below floats */
.single .post-categories,
.single .nm-post-cats,
.single .entry-footer,
.single .comments-area,
.single #comments{
  clear: both;
}

/* Optional: keep big floated images from dominating the column */
.single .entry-content .alignleft,
.single .entry-content .alignright{
  max-width: 40%;
}
@media print{
  header, nav, aside, .nm-col-left, .nm-col-right, .site-footer { display:none !important; }
  .nm-col-content, .site-main { width:100% !important; max-width:100% !important; margin:0 !important; }
  a:link:after, a:visited:after { content:" (" attr(href) ")"; font-size: 90%; }
}

@media (max-width: 820px) {
  .nm-grid{
    grid-template-columns: 1fr;
    grid-template-areas:
      "content"
      "left"
      "right";
  }
  .nm-col-content{ grid-area: content; }
  .nm-col-left{ grid-area: left; }
  .nm-col-right{ grid-area: right; }
}
/* The container that holds BOTH the title and the icon */
.post-title-wrap,
.entry-header,
.post-header {
  position: relative;
}

/* Give the title room so it never goes under the icon */
.post-title-wrap h1,
.entry-header h1,
.post-header h1 {
  padding-right: 130px;   /* adjust: should be icon width + some breathing room */
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Keep the icon pinned */
.post-icon,
.entry-icon,
.header-icon {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 96px;            /* your icon size */
  height: auto;
}

/* --- Older/Newer posts as buttons (only the WP posts navigation) --- */
.site-main .navigation.posts-navigation{
  clear: both;                 /* prevents weird float overlap with your middle widget */
  margin: 14px 0 0;
  padding: 0;
}

.site-main .navigation.posts-navigation .nav-links{
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.site-main .navigation.posts-navigation .nav-links > div{
  flex: 1;
}

.site-main .navigation.posts-navigation .nav-previous{
  text-align: left;
}

.site-main .navigation.posts-navigation .nav-next{
  text-align: right;
}

.site-main .navigation.posts-navigation a{
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid #9aa3ad;
  border-radius: 6px;
  background: #eef2f6;
  text-decoration: none;
  font-weight: 600;
  line-height: 1;
}

.site-main .navigation.posts-navigation a:hover,
.site-main .navigation.posts-navigation a:focus{
  background: #e3e9f0;
  text-decoration: none;
}


/* Category archive: RSS icon + title row */
.nm-archive-title-row{
  display: flex;
  align-items: center;
  gap: 10px;
}

.nm-archive-title-row .page-title{
  margin: 6px 0 12px; /* keep your existing spacing */
}

.nm-archive-rss{
  display: inline-flex;
  align-items: center;
}

.nm-archive-rss img{
  width: 20px;
  height: 20px;
  display: block;
}

.nm-archive-title-row .page-title{
  margin: 6px 0 12px; /* keep your existing spacing */
}

.nm-archive-rss{
  display: inline-flex;
  align-items: center;
}

.nm-archive-rss img{
  width: 20px;
  height: 20px;
  display: block;
}

.nm-cat-widget ul { margin: 0; padding-left: 18px; }
.nm-cat-widget li { margin: 4px 0; }
@media (max-width: 700px){

  /* Reserve space so multi-line titles never run under the icon */
  .home .nm-teaser-title a{
    padding-right: 70px; /* space for 48px icon + gap */
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* Make the icon smaller on phones */
  .home .nm-teaser-avatar{
    width: 48px !important;
    height: 48px !important;
    right: 8px !important;
  }	
}

@media (max-width: 700px){
  /* shrink icon */
  .home .nm-teaser-avatar{
    top: 8px !important;
    right: 8px !important;
    width: 48px !important;
    height: 48px !important;
    transform: none !important; /* kills the 55% centering */
    margin-top: 0 !important;
  }

  /* reserve space so titles never collide */
  .home .nm-teaser-head{
    padding-right: 68px !important; /* 48px icon + breathing room */
  }

  /* make long titles wrap cleanly */
  .home .nm-teaser-title a{
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}
/* NOWPayments donate button - keep it inside sidebar */
.np-donate {
  width: 100%;
  overflow: hidden;          /* kills the spill */
  text-align: center;        /* center the button */
}

.np-donate a {
  display: inline-block;
  max-width: 100%;
}

.np-donate img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* Center the calendar table itself */
#calendar-3 #wp-calendar {
  margin-left: auto;
  margin-right: auto;
  float: none;
  display: table;         /* keeps table behavior */
}

/* If your theme makes it full-width, this forces shrink-to-content */
#calendar-3 table.wp-calendar-table {
  width: auto;
}

/* Center the prev/next nav row */
#calendar-3 .wp-calendar-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* If theme uses these specific classes */
#calendar-3 .wp-calendar-nav-prev,
#calendar-3 .wp-calendar-nav-next {
  float: none;
  display: inline-block;
}
.widget .ref-box img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}
