/* Blog-specific styles — base layout/fonts from /styles.css */

.nav-link.nav-link-active {
  color: #f4a261;
}

.nav-link.nav-link-active::after {
  width: 100%;
}

.blog-page-section {
  padding: 4rem 0 5rem;
  background: linear-gradient(135deg, #f6f4e8 0%, #ffffff 100%);
  min-height: 50vh;
}

.blog-page-section .section-header {
  margin-bottom: 2.5rem;
}

.blog-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2rem 2.5rem;
  align-items: start;
  width: 100%;
}

.blog-main {
  min-width: 0;
}

.blog-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: none;
}

.blog-card {
  background: #fff;
  border-radius: 0.75rem;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.blog-card a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.blog-card h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.375rem;
  font-weight: 600;
  color: #2d3e50;
  margin: 0 0 0.35rem;
  line-height: 1.3;
}

.blog-card h2:hover {
  color: #f4a261;
}

.blog-card time {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

.blog-card p {
  margin: 0.65rem 0 0;
  color: #374151;
  font-size: 1rem;
  line-height: 1.6;
}

.blog-card-thumb {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.blog-loading,
.blog-empty {
  text-align: center;
  color: #6b7280;
  padding: 2rem;
  font-size: 1.0625rem;
}

.blog-load-more {
  text-align: center;
  color: #6b7280;
  font-size: 0.9375rem;
  padding: 1rem 0;
}

.blog-sentinel {
  height: 1px;
}

/* Right sidebar */
.blog-sidebar {
  position: sticky;
  top: 5.5rem;
  background: #fff;
  border-radius: 0.75rem;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.blog-sidebar-label,
.blog-sidebar-heading {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
  margin: 0 0 0.65rem;
}

.blog-sidebar-block {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e5e7eb;
}

.blog-sidebar-search-row {
  display: flex;
  gap: 0.4rem;
}

.blog-sidebar-search input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-family: inherit;
}

.blog-search-btn {
  padding: 0.5rem 0.85rem;
  background: #2d3e50;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
}

.blog-search-btn:hover {
  background: #f4a261;
  color: #1f1f1f;
}

.blog-sidebar-hint {
  font-size: 0.875rem;
  color: #9ca3af;
  margin: 0;
}

.blog-month-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.blog-month-btn {
  text-align: left;
  background: transparent;
  border: none;
  padding: 0.4rem 0.55rem;
  border-radius: 0.4rem;
  font-size: 0.875rem;
  color: #374151;
  cursor: pointer;
  font-family: inherit;
}

.blog-month-btn:hover {
  background: #f6f4e8;
  color: #2d3e50;
}

.blog-month-btn.is-active {
  background: #2d3e50;
  color: #fff;
}

.blog-archive-links {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 22rem;
  overflow-y: auto;
}

.blog-archive-links li {
  margin-bottom: 0.35rem;
}

.blog-archive-link {
  display: block;
  position: relative;
  font-size: 0.875rem;
  color: #D45D00;
  text-decoration: none;
  padding: 0.35rem 0.45rem;
  border-radius: 0.35rem;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blog-archive-link:hover,
.blog-archive-link:focus {
  background: #f6f4e8;
  color: #2d3e50;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  z-index: 2;
}

.blog-archive-short {
  display: none;
}

.blog-archive-full {
  display: inline;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Single post article */
.blog-article-wrap {
  padding: 4rem 0 5rem;
  background: linear-gradient(135deg, #f6f4e8 0%, #ffffff 100%);
}

.blog-article-inner {
  max-width: 48rem;
  margin: 0 auto;
}

.blog-article-header h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.25rem;
  font-weight: 600;
  color: #1f1f1f;
  line-height: 1.2;
  margin: 0.5rem 0 1rem;
}

.blog-meta {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
  font-weight: 500;
}

.blog-excerpt {
  font-size: 1.125rem;
  color: #374151;
  line-height: 1.6;
}

.blog-featured-image {
  margin: 1.5rem 0;
  max-height: 240px;
  overflow: hidden;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
}

.blog-featured-image img {
  width: 100% !important;
  height: 240px !important;
  max-height: 240px !important;
  object-fit: cover !important;
  object-position: center;
  border-radius: 0;
  box-shadow: none;
  display: block;
}

.blog-featured-image figcaption {
  font-size: 0.8125rem;
  color: #6b7280;
  margin-top: 0.5rem;
  padding: 0 0.25rem;
}

.blog-body {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #1f1f1f;
}

.blog-body h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #2d3e50;
  margin: 2rem 0 0.75rem;
}

.blog-body h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2d3e50;
  margin: 1.5rem 0 0.5rem;
}

.blog-body p,
.blog-body ul {
  margin: 0 0 1.125rem;
}

.blog-body ul {
  padding-left: 1.5rem;
}

.blog-body a {
  color: #D45D00;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-body a:hover {
  color: #f4a261;
}

.blog-cliffhanger {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border-left: 4px solid #f4a261;
  border-radius: 0 0.5rem 0.5rem 0;
  font-size: 1.0625rem;
  color: #374151;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.blog-disclaimer {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.6;
  border: 1px solid #e5e7eb;
}

.blog-vote-float {
  position: fixed !important;
  right: max(1rem, calc((100vw - 48rem) / 2 - 4.5rem));
  top: 42%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.7rem 0.5rem;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid #e5e7eb;
  border-radius: 1.25rem;
  box-shadow: 0 10px 28px rgba(45, 62, 80, 0.14);
}

.blog-vote-float-label {
  margin: 0 0 0.15rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6b7280;
  text-align: center;
  line-height: 1.15;
}

.blog-vote-float-btn {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  width: 2.6rem;
  min-height: 2.6rem;
  padding: 0.3rem;
  border: 1px solid transparent;
  border-radius: 0.85rem;
  background: transparent;
  color: #2d3e50;
  cursor: pointer;
  font-family: inherit;
}

.blog-vote-float-btn:hover:not(:disabled) {
  background: #f6f4e8;
  border-color: #f4a261;
}

.blog-vote-float-btn.is-selected {
  background: #2d3e50;
  color: #fff;
  border-color: #2d3e50;
}

.blog-vote-float-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.blog-vote-float .blog-vote-count {
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
}

.blog-vote-svg {
  display: block;
}

.blog-back {
  margin-top: 2.5rem;
}

.blog-back-top {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.blog-back a {
  color: #D45D00;
  font-weight: 500;
  text-decoration: none;
}

.blog-back a:hover {
  color: #f4a261;
  text-decoration: underline;
}

@media (max-width: 720px) {
  .blog-layout {
    grid-template-columns: 1fr !important;
  }

  .blog-sidebar {
    position: static;
    order: -1;
  }

  .blog-vote-float {
    right: 0.85rem;
    top: auto;
    bottom: 1rem;
    transform: none;
    flex-direction: row;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
  }

  .blog-vote-float-label {
    max-width: none;
    margin: 0 0.25rem 0 0;
  }

  .blog-vote-float-btn {
    width: 2.4rem;
    min-height: 2.4rem;
  }
}

@media (max-width: 768px) {
  .blog-page-section,
  .blog-article-wrap {
    padding: 2.5rem 0 3rem;
  }

  .blog-article-header h1 {
    font-size: 1.75rem;
  }
}
