/*
 * Legalwrite Blog Index Styles
 * Modern grid, glassmorphism cards, and animations.
 */

.lw-blog-page {
  background-color: #0b1331;
}

.lw-blog {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding-bottom: 120px;
}

.lw-blog .container {
  max-width: 1248px;
}

/* ==========================================================================
   BLOG HERO
   ========================================================================== */
.blog-hero {
  padding: 180px 0 60px;
  position: relative;
  text-align: center;
  width: 100%;
}

.section-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #FF9216;
}

.blog-hero__content {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.blog-hero__title {
  font-size: clamp(48px, 8vw, 92px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  background: linear-gradient(to bottom, #ffffff 30%, rgba(255, 255, 255, 0.4) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  width: 100%;
  white-space: nowrap;
}

@media (max-width: 1200px) {
  .blog-hero__title {
    white-space: normal;
  }
}

.blog-hero__subtitle {
  font-size: 20px;
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

/* ==========================================================================
   BLOG SEARCH & FILTER
   ========================================================================== */
.blog-search {
  padding: 0;
  position: relative;
  z-index: 10;
  width: 100%;
}

/* Spacing below toggle when collapsed */
.blog-search__toggle {
  margin-bottom: 32px;
}

/* When expanded, the panel provides its own bottom spacing */
.blog-search:has(.blog-search__panel.is-expanded) .blog-search__toggle {
  margin-bottom: 0;
}

/* Toggle Button (Collapsed State) */
.blog-search__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 16px 28px;
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-search__toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.blog-search__toggle.is-active {
  background: rgba(255, 146, 22, 0.1);
  border-color: #FF9216;
  color: #FF9216;
}

.blog-search__toggle:focus,
.blog-search__toggle:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.blog-search__toggle::-moz-focus-inner {
  border: 0;
}

.blog-search__toggle-icon {
  flex-shrink: 0;
}

.blog-search__toggle-text {
  flex: 1;
  text-align: center;
}

.blog-search__toggle-chevron {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.blog-search__toggle.is-active .blog-search__toggle-chevron {
  transform: rotate(180deg);
}

/* Expandable Panel */
.blog-search__panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease,
              margin 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 0;
}

.blog-search__panel > * {
  overflow: hidden;
}

.blog-search__panel.is-expanded {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 20px;
  margin-bottom: 32px;
}

.blog-search__wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  padding: 28px 32px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Text Search Input */
.blog-search__input-wrapper {
  position: relative;
  width: 100%;
  max-width: 560px;
}

.blog-search__icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
  transition: color 0.2s ease;
}

.blog-search__input {
  width: 100%;
  padding: 16px 56px 16px 50px !important;
  font-size: 16px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  color: #ffffff !important;
  caret-color: #FF9216;
  background: rgba(0, 0, 0, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  outline: none !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-appearance: none;
  appearance: none;
  -webkit-text-fill-color: #ffffff;
}

.blog-search__input::placeholder {
  color: #64748b;
  font-weight: 400;
  -webkit-text-fill-color: #64748b;
}

.blog-search__input:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.35) !important;
}

.blog-search__input:focus {
  border-color: #FF9216;
  background: rgba(0, 0, 0, 0.4) !important;
  box-shadow: 0 0 0 3px rgba(255, 146, 22, 0.12);
}

.blog-search__input:focus ~ .blog-search__icon,
.blog-search__input-wrapper:has(.blog-search__input:focus) .blog-search__icon {
  color: #FF9216;
}

/* Clear button inside search */
.blog-search__clear {
  display: none;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  outline: none !important;
}

.blog-search__clear.is-visible {
  display: flex;
}

.blog-search__clear svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.blog-search__clear svg line {
  stroke: #94a3b8;
  stroke-width: 2.5;
  transition: stroke 0.2s ease;
}

.blog-search__clear:hover {
  background: rgba(255, 146, 22, 0.3);
}

.blog-search__clear:hover svg line {
  stroke: #FF9216;
}

.blog-search__clear:focus {
  outline: none !important;
}

/* Category Filters */
.blog-search__categories {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.blog-search__filter-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.blog-search__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.blog-search__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.blog-search__pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.blog-search__pill:focus,
.blog-search__pill:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* Remove browser default focus ring */
.blog-search__pill::-moz-focus-inner {
  border: 0;
}

.blog-search__pill.is-active {
  background: rgba(255, 146, 22, 0.18);
  border-color: #FF9216;
  color: #FF9216;
}

.blog-search__pill.is-active:focus,
.blog-search__pill.is-active:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  background: rgba(255, 146, 22, 0.18);
  border-color: #FF9216;
}

.blog-search__pill.is-active:hover {
  background: rgba(255, 146, 22, 0.28);
}

.blog-search__pill-count {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  color: #94a3b8;
  transition: all 0.2s ease;
}

.blog-search__pill.is-active .blog-search__pill-count {
  background: rgba(255, 146, 22, 0.35);
  color: #FF9216;
}

/* Active Filters Summary */
.blog-search__active-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
}

.blog-search__results-count {
  font-size: 14px;
  color: #94a3b8;
}

.blog-search__results-count strong {
  color: #ffffff;
  font-weight: 600;
}

.blog-search__clear-all {
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  color: #FF9216;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.blog-search__clear-all:hover {
  background: rgba(255, 146, 22, 0.1);
}

/* No Results State */
.blog-search__no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 40px;
  color: #64748b;
}

.blog-search__no-results-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  color: #475569;
}

.blog-search__no-results h3 {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.blog-search__no-results p {
  font-size: 16px;
  max-width: 400px;
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
  .blog-search {
    padding: 0 0 40px;
  }
  
  .blog-search__wrapper {
    gap: 20px;
  }
  
  .blog-search__categories {
    flex-direction: column;
    gap: 16px;
  }
  
  .blog-search__pills {
    max-width: 100%;
  }
  
  .blog-search__pill {
    padding: 8px 14px;
    font-size: 13px;
  }
  
  .blog-search__active-filters {
    flex-direction: column;
    gap: 12px;
  }
}

/* ==========================================================================
   POST GRID
   ========================================================================== */
.blog-content {
  padding-bottom: 120px;
  position: relative;
  z-index: 5;
  width: 100%;
}

.blog-content__glow {
  position: fixed; /* Changed to fixed to anchor it during scroll */
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  max-width: 1600px;
  height: 100vh;
  pointer-events: none;
  z-index: 1; /* Above main bg, below content */
}

/* The "Amorphous Paper" Surface - Gives it structure and body */
.blog-content__glow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.06); /* Slightly more opaque */
  backdrop-filter: blur(20px); /* Reduced blur for clearer surface */
  -webkit-backdrop-filter: blur(20px);
  /* Tightened mask transition for more defined edges */
  mask-image: radial-gradient(ellipse 65% 80% at 50% 45%, black 0%, black 60%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 65% 80% at 50% 45%, black 0%, black 60%, transparent 75%);
  opacity: 1;
}

/* The Vibrant Lighting Definition - Adds the color pop */
.blog-content__glow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    /* Defined Blue Core */
    radial-gradient(circle at 40% 30%, rgba(24, 116, 255, 0.4) 0%, transparent 50%),
    /* Defined Orange Accent */
    radial-gradient(circle at 60% 50%, rgba(255, 146, 22, 0.25) 0%, transparent 50%),
    /* Deep Shadow/Depth */
    radial-gradient(circle at 50% 40%, rgba(1, 52, 130, 0.3) 0%, transparent 70%);
  filter: blur(30px); /* Sharper lighting for more definition */
  mix-blend-mode: plus-lighter;
  opacity: 1;
  /* Clip the glow to the same paper shape for definition */
  mask-image: radial-gradient(ellipse 65% 80% at 50% 45%, black 0%, black 60%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 65% 80% at 50% 45%, black 0%, black 60%, transparent 80%);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 60px;
}

/* ==========================================================================
   POST CARD (Glassmorphism)
   ========================================================================== */
.post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: rgba(255, 255, 255, 0.85); /* Matched standard page content box */
  backdrop-filter: blur(25px) saturate(1.2);
  -webkit-backdrop-filter: blur(25px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none !important;
  color: #334155; /* Darker default text */
  opacity: 0;
  transform: translateY(30px);
  isolation: isolate;
  cursor: pointer;
  
  /* Multi-layered "Cool" Shadow & Glass Effect - Matched standard page */
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.7),             /* Strong, clean dark shadow */
    0 0 0 1px rgba(255, 255, 255, 0.2),         /* Very subtle rim light */
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);   /* Barely there inner edge */
}

.post-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.post-card:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 146, 22, 0.6);
  transform: translateY(-8px);
  box-shadow: 
    0 40px 100px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(255, 146, 22, 0.1);
  color: #1e293b !important;
}

.post-card__image-link {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.post-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.post-card:hover .post-card__image {
  transform: scale(1.05);
}

.post-card__content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 0 20px 20px;
}

.post-card:hover .post-card__content {
  background: rgba(255, 255, 255, 0.05);
}

.post-card__tags {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 500;
}

.post-card__category {
  color: #ea580c; /* Darker orange for light bg */
}

.post-card__date,
.post-card__read-time {
  color: #64748b;
}

.post-card__meta-dot {
  color: #94a3b8;
}

.post-card .post-card__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0;
  color: #0b1331; /* Navy title */
  transition: color 0.3s ease;
}

.post-card:hover .post-card__title {
  color: #ea580c !important;
}

.post-card:hover .post-card__excerpt,
.post-card:hover .post-card__read-more,
.post-card:hover .post-card__date,
.post-card:hover .post-card__read-time {
  color: #1e293b !important;
}

.post-card__excerpt {
  font-size: 16px;
  color: #475569; /* Darker slate gray */
  line-height: 1.6;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.post-card__read-more {
  font-size: 14px;
  font-weight: 600;
  color: #0b1331;
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-card__arrow {
  transition: transform 0.3s ease;
}

.post-card:hover .post-card__arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   LOAD MORE
   ========================================================================== */
.blog-footer {
  text-align: center;
  padding-top: 40px;
}

.load-more-btn {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 40px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.load-more-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #FF9216;
  transform: translateY(-2px);
}

.load-more-btn.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.load-more-btn .spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.load-more-btn.is-loading .spinner {
  display: block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-hero {
    padding: 160px 0 60px;
  }
  
  .post-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .post-card__content {
    padding: 24px;
  }
}

/* ==========================================================================
   SINGLE POST (MANUSCRIPT / PAPER DESIGN)
   ========================================================================== */
.lw-single-post {
    background-color: #0b1331;
    min-height: 100vh;
    padding-bottom: 120px;
    padding-top: 140px; /* Space for fixed header */
}

/* Paper / Manuscript Styling */
.lw-single-post__paper-container {
    max-width: 1200px;
    margin: 0 auto !important;
    position: relative;
    z-index: 10;
    padding: 0;
}

.lw-single-post__paper {
    width: 100%;
    margin: 0 auto;
    display: block;
    position: relative;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(255, 146, 22, 0.1);
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    line-height: 1.8;
    margin-bottom: 40px;
    background: transparent !important;
}

/* Paper Hero (Split Layout) */
.lw-single-post__paper-hero {
    background-color: #dfdbd0;
    /* Diagonal linear gradient with high contrast for paper depth */
    background-image: linear-gradient(135deg, #fffefc 0%, #ccc8bc 100%);
    position: relative;
    display: flex;
    gap: 60px;
    align-items: center;
    padding: 80px 100px;
    border-bottom: 1px solid rgba(0,0,0,0.12);
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

/* Dots overlay specifically for the hero paper */
.lw-single-post__paper-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/dots.webp');
    background-repeat: repeat;
    background-size: 400px auto;
    opacity: 1; /* Slightly more visible than global dots */
    pointer-events: none;
    z-index: 0;
}

.lw-single-post__hero-image,
.lw-single-post__hero-content {
    position: relative;
    z-index: 1; /* Sit above the dots */
}

.lw-single-post__hero-image {
    flex: 0 0 45%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.lw-single-post__hero-content {
    flex: 1;
}

.lw-single-post__paper-header {
    text-align: left;
    margin-bottom: 0;
}

.lw-single-post__tags {
    color: #c96d00 !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
    font-family: 'DM Sans', sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.lw-single-post__title {
    font-size: clamp(28px, 4vw, 44px) !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    margin-bottom: 24px !important;
    color: #0b1331 !important;
    font-family: 'DM Sans', sans-serif !important;
}

.lw-single-post__meta {
    font-size: 14px !important;
    color: #64748b !important;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'DM Sans', sans-serif;
    margin-bottom: 32px;
}

.lw-single-post__author-box {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: 'DM Sans', sans-serif;
}

.lw-single-post__author-box img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.lw-single-post__author-info {
    display: flex;
    flex-direction: column;
}

.author-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.author-name {
    font-size: 15px;
    font-weight: 600;
    color: #0b1331;
    border-bottom: 1px solid #0b1331;
}

/* Two-Column Body */
.lw-single-post__paper-body {
    background-color: #ffffff;
    padding: 80px 100px;
    display: flex;
    gap: 80px;
    position: relative;
    border-radius: 0 0 8px 8px; /* Apply rounded corners directly */
}

.lw-single-post__sidebar {
    flex: 0 0 240px;
    padding-right: 40px;
    border-right: 1px solid rgba(0,0,0,0.12); /* Slightly more visible gray line */
}

.lw-single-post__sidebar-sticky {
    position: sticky;
    top: 120px;
}

.lw-single-post__font-tool {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.font-tool-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    margin-bottom: 12px;
    font-weight: 700;
}

.font-tool-group {
    display: inline-flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 12px;
    gap: 4px;
    border: 1px solid #e2e8f0;
}

.font-btn {
    background: transparent;
    border: none;
    color: #475569;
    width: 44px;
    height: 36px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none !important;
    user-select: none;
}

.font-btn:hover {
    background: #ffffff;
    color: #0b1331;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.font-btn:active {
    transform: scale(0.95);
    background: #e2e8f0;
}

.font-btn:disabled {
    opacity: 0.5;
    cursor: default;
    background: transparent;
    color: #94a3b8;
    box-shadow: none;
    pointer-events: none;
}

/* Specific styling for the reset button to make it look secondary */
#font-reset {
    font-size: 11px;
    width: 54px;
}

.sidebar-title {
    font-family: 'DM Sans', sans-serif;
    font-size: calc(14px * var(--reading-scale, 1));
    font-weight: 700;
    transition: font-size 0.25s ease;
    text-transform: uppercase;
    color: #0b1331;
    margin-bottom: 24px;
    padding-bottom: 10px;
    border-bottom: 2px solid #FF9216;
    width: fit-content;
    display: block;
}

.lw-single-post__toc {
    margin-top: 20px;
}

.lw-single-post__toc .toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lw-single-post__toc .toc-item {
    margin-bottom: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: calc(13px * var(--reading-scale, 1));
    line-height: 1.4;
    transition: font-size 0.25s ease;
}

.lw-single-post__toc .toc-link {
    color: #64748b;
    transition: all 0.2s;
}

.lw-single-post__toc .toc-link:hover,
.lw-single-post__toc .toc-link.is-active {
    color: #FF9216;
}

.lw-single-post__toc .toc-item--h3 {
    padding-left: 16px;
    font-size: calc(12px * var(--reading-scale, 1));
    transition: font-size 0.25s ease;
}

.lw-single-post__main-content {
    flex: 1;
    max-width: 720px;
}

.lw-single-post__paper-content {
    font-size: 19px;
    color: #1a202c;
    transition: font-size 0.25s ease;
}

.lw-single-post__paper-content h2,
.lw-single-post__paper-content h3 {
    font-family: 'DM Sans', sans-serif !important;
    color: #0b1331 !important;
    margin: 48px 0 24px !important;
    font-weight: 700 !important;
    scroll-margin-top: 140px;
}

.lw-single-post__paper-content h2 { font-size: 32px; }
.lw-single-post__paper-content h3 { font-size: 24px; }

.lw-single-post__paper-content p {
    margin-bottom: 24px;
}

.lw-single-post__paper-content ul,
.lw-single-post__paper-content ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.lw-single-post__paper-content ul {
    list-style-type: disc !important;
}

.lw-single-post__paper-content ol {
    list-style-type: decimal !important;
}

.lw-single-post__paper-content li {
    margin-bottom: 12px;
    padding-left: 8px;
}

.lw-single-post__paper-content li:last-child {
    margin-bottom: 0;
}

.lw-single-post__paper-content strong,
.lw-single-post__paper-content b {
    color: #0b1331;
    font-weight: 700;
}

.lw-single-post__paper-content a {
    color: #3b82f6;
    text-decoration: underline;
}

.lw-single-post__paper-content a:hover {
    color: #2563eb;
}

/* Paper Footer / Share Section */
.lw-single-post__paper-footer {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #64748b;
}

.lw-single-post__share {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.lw-single-post__share span {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.lw-single-post__share-links {
    display: flex;
    gap: 12px;
}

.lw-single-post__share-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.lw-single-post__share-links a span {
    color: #ffffff !important;
}

.lw-single-post__share-links a svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.lw-single-post__share-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    filter: brightness(1.1);
}

/* Specific Brand Colors */
.lw-single-post__share-links a.share-x {
    background: #000000;
}

.lw-single-post__share-links a.share-linkedin {
    background: #0a66c2;
}

.lw-single-post__share-links a.share-facebook {
    background: #1877f2;
}

.lw-single-post__paper::after,
.lw-single-post__paper::before {
    display: none !important;
}

/* Post Navigation */
.lw-single-post__nav {
    margin-top: 60px;
    padding: 0 100px;
}

.lw-single-post__nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.lw-single-post__nav-prev,
.lw-single-post__nav-next {
    display: flex;
    flex-direction: column;
    padding: 32px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.lw-single-post__nav-prev:hover,
.lw-single-post__nav-next:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #FF9216;
    transform: translateY(-4px);
}

.lw-single-post__nav-next {
    text-align: right;
    align-items: flex-end;
}

.nav-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #FF9216;
    margin-bottom: 8px;
    font-family: 'DM Sans', sans-serif;
}

.nav-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    font-family: 'DM Sans', sans-serif;
}

/* Mobile Adjustments for Nav */
@media (max-width: 1200px) {
    .lw-single-post__nav {
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    .lw-single-post__nav {
        padding: 0 24px;
    }
    .lw-single-post__nav-links {
        grid-template-columns: 1fr;
    }

    .lw-single-post__paper-hero,
    .lw-single-post__paper-body {
        padding: 60px 40px;
        gap: 40px;
    }
}

@media (max-width: 960px) {
    .lw-single-post__paper-hero {
        flex-direction: column;
        align-items: flex-start;
    }
    .lw-single-post__hero-image {
        width: 100%;
        flex: none;
    }
    .lw-single-post__sidebar {
        display: none;
    }
    .lw-single-post__paper-body {
        padding: 40px 32px;
    }
}

@media (max-width: 768px) {
    .lw-single-post {
        padding-top: 100px;
    }
    .lw-single-post__paper-body {
        padding: 40px 24px;
    }
    .lw-single-post__paper-content {
        font-size: 17px;
    }
    
    .lw-single-post__share {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .lw-single-post__share-links {
        width: 100%;
        flex-wrap: wrap;
    }
}
