/* ============================================================
   Search Engine Sonic — Blog Post Page Stylesheet
   File: css/ses-blog-post.css
   Clean rewrite — fixes width and newsletter layout issues
============================================================ */

/* ── Reset Astra layout on single posts ──────────────────── */
/* Remove ALL Astra padding/width constraints so our layout takes over */



.single-post #primary,
.single-post #main,
.single-post .site-main,
.single-post #content,
.single-post .ast-article-post,
.single-post .entry-header,
.single-post .ast-separate-container .ast-article-post,
.single-post .ast-container {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
  width: 100% !important;

}
/* 18 jun 2026*/ 
.single-post .site-primary-header-wrap.ast-container {
    padding-left: 20px !important;
    padding-right: 20px !important;
}

.single-post .ast-right-sidebar #primary,
.single-post .ast-left-sidebar #primary {
  width: 100% !important;
}
/* Hide Astra's default entry header since we render our own */
.single-post .entry-header { display: none !important; }
/* Remove Astra entry content max-width */
.single-post .entry-content {
  max-width: none !important;
  padding: 0 !important;
}

/* ── Reading Progress Bar ────────────────────────────────── */
.ses-progress-bar {
  /* position: sticky;*/
  position: fixed;
  top: 0;
left: 0;
 /*  z-index: 100; */ 
 z-index: 9999;
  height: 3px;
 /* background: var(--border, #e2e8f0);*/
  width: 100%;
   background: transparent;
}

.ses-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--brand, #2563eb);
  transition: width .15s ease-out;
}


.ses-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--brand, #2563eb);
  transition: width .15s ease-out;
}

/* ── Article outer wrapper ───────────────────────────────── */
.ses-article {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 1.25rem 4rem;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .ses-article { padding: 2.5rem 2rem 4rem; }
}
@media (min-width: 1280px) {
  .ses-article { padding: 2.5rem 3rem 4rem; }
}

/* ── Breadcrumb ──────────────────────────────────────────── */
.ses-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-soft, #475569);
  flex-wrap: wrap;
  margin-bottom: 0;
}
.ses-breadcrumb a { color: var(--ink-soft, #475569); transition: color .2s; }
.ses-breadcrumb a:hover { color: var(--ink, #0f172a); }
.ses-crumb-current { color: var(--ink, #0f172a); }

/* ── Article Header ──────────────────────────────────────── */
.ses-article-header {
  max-width: 900px;
  margin-top: 2rem;
}
.ses-tag {
  display: inline-block;
  background: var(--brand-soft, #eef2ff);
  color: var(--brand, #2563eb);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
}
.ses-article-header h1 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.15;
  margin: 1rem 0 1.25rem;
  font-weight: 700;
  font-family: var(--font-display, "Outfit", sans-serif);
  letter-spacing: -.02em;
  color: var(--ink, #0f172a);
}
/* 11 jun 2026*/ 
.ses-prose {
  font-family: "Outfit", sans-serif;
}
.ses-lede {
  font-size: 1.125rem;
  color: var(--ink-soft, #475569);
  margin: 0;
  line-height: 1.7;
}
.ses-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  font-size: 14px;
  color: var(--ink-soft, #475569);
}
.ses-author {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.ses-author-name {
  color: var(--ink, #0f172a);
  font-weight: 600;
}
.ses-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--brand, #2563eb);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  flex: none;
}
.ses-avatar.ses-lg {
  width: 64px;
  height: 64px;
  font-size: 18px;
}
.ses-dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--border, #e2e8f0);
  flex: none;
}

/* ── Hero Image ──────────────────────────────────────────── */
.ses-hero-image {
  margin: 2.5rem 0 0;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--border, #e2e8f0);
  background: var(--surface, #f8fafc);
}
.ses-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Article Grid: TOC | Prose | Share ───────────────────── */
.ses-article-grid {
  margin-top: 3rem;
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
  /* Mobile: single column, TOC hidden */
}
@media (min-width: 1024px) {
  .ses-article-grid {
    grid-template-columns: 200px 1fr 80px;
    align-items: start;
  }
}

/* ── TOC — desktop only ──────────────────────────────────── */
.ses-toc {
  display: none;
}
@media (min-width: 1024px) {
  .ses-toc {
    display: block;
  }
}

@media (min-width: 1024px) {

  .ses-toc {
    display: block;
    position: sticky;
    top: 110px;
    align-self: start;
  }

  .ses-share {
    display: block;
    position: sticky;
    top: 110px;
    align-self: start;
  }

}

.ses-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft, #475569);
  margin: 0 0 1rem;
}
.ses-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--border, #e2e8f0);
}
.ses-toc li a {
  display: block;
  padding: 7px 0 7px 14px;
  font-size: 13px;
  color: var(--ink-soft, #475569);
  border-left: 2px solid transparent;
  margin-left: -2px;
  transition: all .2s ease;
  line-height: 1.4;
  text-decoration: none;
}
.ses-toc li a:hover,
.ses-toc li a.active {
  color: var(--ink, #0f172a);
  border-left-color: var(--brand, #2563eb);
}

/* ── Prose ───────────────────────────────────────────────── */
.ses-prose {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--ink, #0f172a);
  min-width: 0; /* prevents grid blowout */
}
.ses-prose p {
  margin: 1.1em 0;
  color: var(--ink-soft, #475569);
}
.ses-prose h1,
.ses-prose h2,
.ses-prose h3,
.ses-prose h4 {
  font-family: var(--font-display, "Manrope", sans-serif);
  color: var(--ink, #0f172a);
  letter-spacing: -.02em;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.25;
}
.ses-prose h2 { font-size: 1.75rem; }
.ses-prose h3 { font-size: 1.25rem; margin-top: 2rem; }
.ses-prose h4 { font-size: 1.1rem; }
.ses-prose ul,
.ses-prose ol {
  padding-left: 1.5rem;
  color: var(--ink-soft, #475569);
}
.ses-prose ul li,
.ses-prose ol li { margin: .4em 0; }
.ses-prose strong { color: var(--ink, #0f172a); }
.ses-prose a {
  color: var(--brand, #2563eb);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ses-prose code {
  background: var(--surface, #f8fafc);
  padding: .15em .4em;
  border-radius: 6px;
  font-size: .875em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--ink, #0f172a);
}
.ses-prose pre {
  background: var(--surface, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 14px;
  padding: 20px;
  overflow-x: auto;
  margin: 1.5rem 0;
}
.ses-prose pre code {
  background: none;
  padding: 0;
  font-size: .9rem;
  line-height: 1.7;
}
.ses-prose blockquote {
  border-left: 4px solid var(--brand, #2563eb);
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: var(--brand-soft, #eef2ff);
  border-radius: 0 10px 10px 0;
  color: var(--ink-soft, #475569);
  font-style: italic;
}
.ses-prose hr {
  border: none;
  border-top: 1px solid var(--border, #e2e8f0);
  margin: 2.5rem 0;
}
.ses-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  margin: 1.5rem 0;
}
.ses-prose table th,
.ses-prose table td {
  border: 1px solid var(--border, #e2e8f0);
  padding: 10px 14px;
  text-align: left;
}
.ses-prose table th {
  background: var(--surface, #f8fafc);
  font-weight: 600;
  color: var(--ink, #0f172a);
}
.ses-prose img {
  max-width: 100%;
  border-radius: 10px;
  margin: 1.5rem 0;
}

/* 12 jun 2026*/
.ses-prose ul,
.ses-prose ol,
.ses-prose li {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    line-height: 1.8;
  
}

.ses-prose ul {
    list-style: none;
    padding-left: 0;
}

.ses-prose ul li {
    position: relative;
    padding-left: 24px;
}

.ses-prose ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: 600;
}
/* ── Share — desktop only ────────────────────────────────── */
.ses-share {
  display: none;
}
@media (min-width: 1024px) {
  .ses-share {
    display: block;
  }
}
.ses-share-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ses-share-btn {
  /* -------------- 
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border, #e2e8f0);
  background: #fff;
  color: var(--ink-soft, #475569);
  cursor: pointer;
  transition: all .2s ease;
------------*/ 
 display: flex;
  align-items: center;
  justify-content: center;

  width: 38px !important;
  height: 38px !important;

  min-width: 38px !important;
  min-height: 38px !important;

  padding: 0 !important;

  border-radius: 50%;
  border: 1px solid var(--border, #e2e8f0);
  background: #fff;
  color: var(--ink-soft, #475569);

  box-sizing: border-box;

}
/* 13 06-2026 */
.ses-share-btn svg {
  width: 12px;
  height: 12px;
}


.ses-share-btn:hover {
  color: var(--brand, #2563eb);
  border-color: var(--brand, #2563eb);
  background: var(--brand-soft, #eef2ff);
}

/* ── Author Box ──────────────────────────────────────────── */
.ses-author-box {
  margin-top: 4rem;
  padding: 2rem;
  background: var(--surface, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 640px) {
  .ses-author-box {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }
}
.ses-author-info { flex: 1; }
.ses-author-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  color: var(--ink, #0f172a);
  font-family: var(--font-display, "Manrope", sans-serif);
}
.ses-author-info p {
  margin: 6px 0 0;
  color: var(--ink-soft, #475569);
  font-size: .95rem;
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--border, #e2e8f0);
  background: #fff;
  color: var(--ink, #0f172a);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: all .2s;
}
.btn-outline:hover {
  border-color: var(--brand, #2563eb);
  color: var(--brand, #2563eb);
}

/* ── Related Posts ───────────────────────────────────────── */
.ses-related {
  border-top: 1px solid var(--border, #e2e8f0);
  background: var(--surface, #f8fafc);
  padding: 4rem 0;
 width: 100vw;
  margin-left: calc(50% - 50vw);
  /* width: 100%; */
}
.ses-related {
  margin-bottom: 5rem;
}
.ses-related .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 768px) {
  .ses-related .container { padding: 0 2rem; }
}
.ses-related-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}
.ses-related-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-family: var(--font-display, "Manrope", sans-serif);
  letter-spacing: -.02em;
  color: var(--ink, #0f172a);
  margin: 0;
}
.ses-link-arrow {
  color: var(--brand, #2563eb);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}
.ses-link-arrow:hover { text-decoration: underline; }
.ses-related-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .ses-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .ses-related-grid { grid-template-columns: repeat(3, 1fr); }
}
.ses-related-card {
  display: block;
  text-decoration: none;
}
.ses-related-card .ses-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border, #e2e8f0);
  background: var(--surface, #f8fafc);
}
.ses-related-card .ses-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.ses-related-card:hover .ses-thumb img { transform: scale(1.03); }
.ses-tag-text {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand, #2563eb);
}
.ses-related-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 6px 0 0;
  line-height: 1.4;
  font-family: var(--font-display, "Manrope", sans-serif);
  color: var(--ink, #0f172a);
  transition: color .2s;
}
.ses-related-card:hover h3 { color: var(--brand, #2563eb); }

/* ── Newsletter Band ─────────────────────────────────────── */
/* Light brand style — matches site branding, replaces dark band */
.ses-post-newsletter {
  background: var(--brand-soft, #eef2ff);
  border-top: 1px solid rgba(37, 99, 235, .15);
  border-bottom: 1px solid rgba(37, 99, 235, .15);
  padding: 4rem 0;
  width: 100%; 
  /* 12 jun 2026*/
   border-radius: 24px;
  overflow: hidden;
  margin-top: 5rem;
}
.ses-post-newsletter-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-start;
}
@media (min-width: 768px) {
  .ses-post-newsletter-inner {
    padding: 0 2rem;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
  }
}
.ses-post-newsletter-text {
  flex: 1;
}
.ses-post-newsletter-text h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-family: var(--font-display, "Manrope", sans-serif);
  color: var(--ink, #0f172a);
  letter-spacing: -.02em;
  margin: 0;
  line-height: 1.25;
}
.ses-post-newsletter-text p {
  margin: 10px 0 0;
  color: var(--ink-soft, #475569);
  font-size: .95rem;
  line-height: 1.6;
}
.ses-post-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 420px;
  flex-shrink: 0;
}
@media (min-width: 480px) {
  .ses-post-newsletter-form {
    flex-direction: row;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 999px;
    padding: 5px;
    gap: 0;
    box-shadow: 0 2px 12px rgba(37,99,235,.10);
  }
  .ses-post-newsletter-form input {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 16px !important;
  }
  .ses-post-newsletter-form button {
    flex-shrink: 0;
  }
}
.ses-post-newsletter-form input {
  flex: 1;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--border, #e2e8f0);
  background: #fff;
  padding: 0 18px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink, #0f172a);
  outline: none;
  transition: border-color .2s;
  box-sizing: border-box;
}
.ses-post-newsletter-form input:focus {
  border-color: var(--brand, #2563eb);
}
.ses-post-newsletter-form input::placeholder {
  color: var(--ink-soft, #475569);
}
.ses-post-newsletter-form button {
  height: 40px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--brand, #2563eb);
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}
.ses-post-newsletter-form button:hover {
  background: #1d4ed8;
}

/* ── Scroll reveal ───────────────────────────────────────── */
.ses-post-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .6s ease, transform .6s ease;
}
.ses-post-reveal.ses-post-in {
  opacity: 1;
  transform: none;
}