/* ==========================================================================
   QUBIT.MK — single.css
   Loaded only on single post pages.
   ========================================================================== */

/* ==========================================================================
   10) SINGLE POST
   ========================================================================== */
.post-body{
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
  overflow-wrap: anywhere;
}

/* Typography */
.single-post .post-content{
  font-size: 1.2rem !important;
  line-height: 1.7;
}
.single-post .post-content p,
.single-post .post-content li,
.single-post .post-content blockquote,
.single-post .post-content a,
.single-post .post-content figcaption{
  font-size: 1.2rem !important;
}

/* Media containment */
.single-post .post-body img,
.single-post .post-body video,
.single-post .post-body iframe,
.single-post .post-body embed,
.single-post .post-body object{
  max-width: 100% !important;
  height: auto;
  display: block;
}

/* Gutenberg wide/full should stay inside column */
.single-post .post-body .alignwide,
.single-post .post-body .alignfull{
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Responsive embeds */
.single-post .post-body .wp-block-embed,
.single-post .post-body figure.wp-block-embed{
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.single-post .post-body .wp-block-embed__wrapper{
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.single-post .post-body .wp-block-embed__wrapper iframe,
.single-post .post-body iframe{
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
  display: block;
}

/* Tables & code */
.single-post .post-body table{
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  word-break: break-word;
}
.single-post .post-body .wp-block-table,
.single-post .post-body table.wp-block-table{
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.single-post .post-body pre{ overflow-x: auto; }

/* Lists inside post body */
.single-post .post-body ul,
.single-post .post-body ol{ padding-left: 1.2em; }

/* Prevent long strings from blowing layout */
.single-post .post-body blockquote,
.single-post .post-body p,
.single-post .post-body li,
.single-post .post-body h1,
.single-post .post-body h2,
.single-post .post-body h3,
.single-post .post-body h4,
.single-post .post-body h5,
.single-post .post-body h6,
.single-post .post-body a{
  overflow-wrap: anywhere;
  word-break: break-word;
}

.single-post .post-meta{
  font-size: 1rem;
  line-height: 1.4;
  opacity: 0.85;
}

/* Author link: clean by default, underline on hover only */
.single-post .post-meta a.post-author,
.single-post .post-meta a.post-author:visited{
  color: #000;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.single-post .post-meta a.post-author:hover{ opacity: 0.9; }

/* Latest posts grid (single post) */
.latest-grid img{ width: 100%; height: auto; display: block; }
.latest-thumb{ position: relative; overflow: hidden; }
.latest-thumb img{
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.latest-title{ font-size: 1.2rem; line-height: 1.4; }
.latest-title a{ color: inherit; text-decoration: none; }

/* Share icons: never underlined */
.single-post .post-share a,
.single-post .post-share a:hover,
.single-post .post-share a:focus,
.single-post .post-share a:focus-visible{
  text-decoration: none !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  background-image: none !important;
}
