/* =====================================================================
   Ahuti Blog Platform — Supplemental Styles
   Extends styles.css without modifying it.
   ===================================================================== */

/* ─── Toast Notifications ──────────────────────────────────── */

#blogToastContainer {
  position: fixed;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 1090;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  pointer-events: none;
}

.blog-toast {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  min-width: 260px;
  max-width: 380px;
  background: #fffdf9;
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 14px;
  padding: 0.72rem 0.9rem;
  box-shadow: 0 8px 24px rgba(61, 35, 14, 0.14);
  pointer-events: auto;
  animation: blogToastIn 0.28s ease;
}

.blog-toast.toast-success { border-left-color: #3a8a58; }
.blog-toast.toast-error   { border-left-color: var(--maroon); }
.blog-toast.toast-info    { border-left-color: #3a6ea8; }
.blog-toast.toast-warning { border-left-color: #c07a24; }

.blog-toast-icon  { font-size: 1.1rem; margin-top: 0.06rem; flex-shrink: 0; }
.blog-toast.toast-success .blog-toast-icon { color: #3a8a58; }
.blog-toast.toast-error   .blog-toast-icon { color: var(--maroon); }
.blog-toast.toast-info    .blog-toast-icon { color: #3a6ea8; }
.blog-toast.toast-warning .blog-toast-icon { color: #c07a24; }

.blog-toast-body  { flex: 1; font-size: 0.93rem; line-height: 1.45; color: var(--text-dark); }
.blog-toast-close { background: none; border: none; font-size: 1rem; color: var(--muted); cursor: pointer; padding: 0; margin-left: 0.4rem; }

@keyframes blogToastIn {
  from { opacity: 0; transform: translateX(18px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ─── Skeleton Loaders ──────────────────────────────────────── */

.skeleton {
  background: linear-gradient(90deg, #eee6d8 25%, #f5edd9 50%, #eee6d8 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.4s infinite;
  border-radius: 8px;
}

.skeleton-text  { height: 1em; margin-bottom: 0.5em; }
.skeleton-title { height: 1.5em; width: 70%; margin-bottom: 0.8em; }
.skeleton-thumb { width: 100%; height: 220px; border-radius: 14px; }
.skeleton-line  { height: 0.9em; margin-bottom: 0.4em; }
.skeleton-line:last-child { width: 60%; }

@keyframes skeletonShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── Blog Listing Page ─────────────────────────────────────── */

.blog-page-hero {
  padding: 3rem 0 2rem;
  background:
    radial-gradient(circle at 85% 15%, rgba(199,154,62,.18), transparent 48%),
    radial-gradient(circle at 10% 30%, rgba(181,111,61,.12), transparent 42%),
    linear-gradient(160deg, #fdf8f2 0%, #f6e9d4 100%);
}

.blog-page-hero .badge-soft { margin-bottom: 0.55rem; }
.blog-page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }

/* Search + filters bar */
.blog-filter-bar {
  background: #fffdf9;
  border: 1px solid #e4d8c8;
  border-radius: 18px;
  padding: 0.75rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.blog-search-input {
  flex: 1;
  min-width: 200px;
}

.blog-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.blog-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #dac9b4;
  background: #fff;
  color: #6d4b31;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.blog-filter-pill:hover,
.blog-filter-pill.active {
  background: var(--maroon);
  border-color: var(--maroon);
  color: #fff;
}

.blog-filter-pill .count {
  font-size: 0.75rem;
  opacity: .75;
}

/* Featured post */
.blog-featured-card {
  border: 1px solid #e0cdb8;
  border-top: 4px solid var(--gold);
  border-radius: 22px;
  overflow: hidden;
  background: #fffdf9;
  box-shadow: 0 10px 28px rgba(95,55,30,.1);
  text-decoration: none;
  display: block;
  transition: transform .22s ease, box-shadow .22s ease;
}

.blog-featured-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(95,55,30,.16);
  text-decoration: none;
}

.blog-featured-img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}

.blog-featured-placeholder {
  width: 100%;
  height: 340px;
  background: linear-gradient(135deg, #f5ead3, #ebe0ca);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a07a54;
  font-size: 3rem;
}

.blog-featured-body {
  padding: 1.4rem 1.6rem 1.6rem;
}

.blog-featured-badge {
  display: inline-block;
  background: rgba(199,154,62,.15);
  border: 1px solid rgba(199,154,62,.4);
  color: #7c4e1c;
  border-radius: 999px;
  padding: 0.22rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.6rem;
}

.blog-featured-title {
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  color: var(--kraft-deep);
  margin-bottom: 0.55rem;
  line-height: 1.25;
}

.blog-featured-desc {
  color: #4f3b2b;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0.8rem;
}

.blog-post-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  font-size: 0.84rem;
  color: var(--muted);
}

.blog-post-meta-row .sep { opacity: .4; }

/* Grid cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.25rem;
}

.blog-grid-card {
  border: 1px solid #e2d4c2;
  border-radius: 18px;
  overflow: hidden;
  background: #fffdf9;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}

.blog-grid-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(95,55,30,.13);
  text-decoration: none;
}

.blog-grid-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.blog-grid-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #f5ead3, #ebe0ca);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b8956d;
  font-size: 2rem;
}

.blog-grid-body {
  padding: 0.95rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-grid-cat {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--copper);
  margin-bottom: 0.35rem;
}

.blog-grid-title {
  font-size: 1.07rem;
  color: var(--kraft-deep);
  margin-bottom: 0.4rem;
  line-height: 1.32;
}

.blog-grid-desc {
  font-size: 0.9rem;
  color: #5a4331;
  line-height: 1.62;
  flex: 1;
  margin-bottom: 0.7rem;
}

.blog-grid-footer {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px solid #ede3d5;
}

/* Tag chips */
.blog-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #fff5e8;
  border: 1px solid #e9d3b8;
  color: #7a4f26;
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .16s ease;
}

.blog-tag:hover { background: #ffe8cc; text-decoration: none; }
.blog-tag.active { background: var(--maroon); border-color: var(--maroon); color: #fff; }

/* Empty state */
.blog-empty {
  text-align: center;
  padding: 3.5rem 1rem;
  border: 1px dashed #d8c9b5;
  border-radius: 18px;
  color: var(--muted);
}

.blog-empty i { font-size: 2.4rem; opacity: .5; margin-bottom: 0.8rem; }
.blog-empty h4 { color: var(--kraft-deep); margin-bottom: 0.4rem; }

/* Pagination */
.blog-pagination {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
}

.blog-page-btn {
  border: 1px solid #d8c9b5;
  border-radius: 999px;
  background: #fff;
  color: var(--kraft-deep);
  padding: 0.38rem 0.9rem;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all .16s ease;
}

.blog-page-btn:hover:not(:disabled) { background: #f5e9d8; border-color: #c8a97a; }
.blog-page-btn.active { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.blog-page-btn:disabled { opacity: 0.45; cursor: default; }

/* ─── Blog Post Reading Page ────────────────────────────────── */

.blog-post-page .post-hero {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 0 0 24px 24px;
  display: block;
}

.blog-post-page .post-hero-placeholder {
  height: 320px;
  background: linear-gradient(135deg, #f5ead3, #ebe0ca);
  border-radius: 0 0 24px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b8956d;
  font-size: 4rem;
}

.blog-post-page .post-content-wrap {
  max-width: 780px;
  margin-inline: auto;
}

.blog-post-page .post-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--kraft-deep);
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

.blog-post-page .post-body {
  font-size: 1.05rem;
  line-height: 1.88;
  color: #2f2018;
}

.blog-post-page .post-body h2 {
  font-size: 1.55rem;
  color: var(--kraft-deep);
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  padding-top: 0.2rem;
  border-top: 1px solid #e8d8c5;
}

.blog-post-page .post-body h3 {
  font-size: 1.22rem;
  color: #5a3a22;
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
}

.blog-post-page .post-body p { margin-bottom: 1.1rem; }

.blog-post-page .post-body blockquote {
  border-left: 4px solid var(--gold);
  padding: 0.75rem 1rem;
  margin: 1.4rem 0;
  background: rgba(199,154,62,.06);
  border-radius: 0 12px 12px 0;
  color: #5a3c22;
  font-style: italic;
}

.blog-post-page .post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid #ddd0be;
  margin: 1.2rem 0;
  display: block;
}

.blog-post-page .post-body ul,
.blog-post-page .post-body ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

.blog-post-page .post-body li { margin-bottom: 0.3rem; }

.blog-post-page .post-body a {
  color: var(--maroon);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Sticky TOC */
.blog-toc-card {
  position: sticky;
  top: 82px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 16px;
  background: #fffdf9;
  padding: 1rem;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.blog-toc-card h6 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--copper);
  margin-bottom: 0.6rem;
}

.blog-toc-list { list-style: none; padding: 0; margin: 0; }
.blog-toc-item { margin-bottom: 0.3rem; }

.blog-toc-link {
  font-size: 0.88rem;
  color: #6b4a2e;
  text-decoration: none;
  display: block;
  padding: 0.18rem 0;
  transition: color .15s ease;
  border-left: 2px solid transparent;
  padding-left: 0.5rem;
}

.blog-toc-link:hover,
.blog-toc-link.toc-active {
  color: var(--maroon);
  border-left-color: var(--maroon);
}

/* Author card */
.blog-author-card {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fffdf9;
  padding: 1rem;
}

.blog-author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--copper));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  flex-shrink: 0;
}

.blog-author-name { font-weight: 700; color: var(--kraft-deep); }
.blog-author-bio  { font-size: 0.9rem; color: var(--muted); margin-bottom: 0; }

/* Social share */
.blog-share-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.blog-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #d9c9b5;
  background: #fff;
  color: #6b4a2e;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all .18s ease;
}

.blog-share-btn:hover { background: #f5e8d5; border-color: #c8a97a; text-decoration: none; }

/* Related posts */
.blog-related-card {
  border: 1px solid #e2d4c2;
  border-radius: 16px;
  overflow: hidden;
  background: #fffdf9;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}

.blog-related-card:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(95,55,30,.12); text-decoration: none; }
.blog-related-img { width: 100%; height: 130px; object-fit: cover; }
.blog-related-placeholder { width: 100%; height: 130px; background: linear-gradient(135deg, #f5ead3, #ebe0ca); display: flex; align-items: center; justify-content: center; color: #b8956d; font-size: 1.8rem; }
.blog-related-body { padding: 0.75rem 0.85rem; }
.blog-related-title { font-size: 0.95rem; color: var(--kraft-deep); line-height: 1.3; margin-bottom: 0.2rem; }
.blog-related-meta  { font-size: 0.78rem; color: var(--muted); }

/* Prev/Next navigation */
.blog-prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.blog-prevnext-btn {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.8rem 1rem;
  background: #fffdf9;
  text-decoration: none;
  transition: all .18s ease;
  display: block;
}

.blog-prevnext-btn:hover { border-color: #c8a97a; background: #fff8ee; text-decoration: none; }
.blog-prevnext-btn .label { font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--copper); margin-bottom: 0.2rem; }
.blog-prevnext-btn .ptitle { font-size: 0.95rem; color: var(--kraft-deep); line-height: 1.3; }
.blog-prevnext-btn.next-btn { text-align: right; }

/* ─── Blog Login Page ────────────────────────────────────────── */

.blog-login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.blog-login-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
}

.blog-login-card {
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  border-radius: 22px;
  background: #fffdf9;
  padding: 2rem 1.8rem;
  box-shadow: 0 12px 32px rgba(95,55,30,.1);
}

.blog-login-card .blog-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

/* ─── Dashboard ─────────────────────────────────────────────── */

.blog-dashboard-page .dash-stat-card {
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  border-radius: 18px;
  background: #fffdf9;
  padding: 1.1rem;
  text-align: center;
  height: 100%;
}

.blog-dashboard-page .dash-stat-card.stat-published { border-top-color: #3a8a58; }
.blog-dashboard-page .dash-stat-card.stat-draft     { border-top-color: var(--copper); }
.blog-dashboard-page .dash-stat-card.stat-updated   { border-top-color: #3a6ea8; }

.blog-dashboard-page .dash-stat-value {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--kraft-deep);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.blog-dashboard-page .dash-stat-label {
  font-size: 0.84rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
}

.blog-dashboard-page .post-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.blog-dashboard-page .post-table th {
  background: #f8f0e5;
  padding: 0.6rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b4a2e;
  border-bottom: 2px solid #e0cebc;
}

.blog-dashboard-page .post-table th:first-child { border-radius: 12px 0 0 0; }
.blog-dashboard-page .post-table th:last-child  { border-radius: 0 12px 0 0; }

.blog-dashboard-page .post-table td {
  padding: 0.7rem 0.85rem;
  font-size: 0.92rem;
  border-bottom: 1px solid #ede5d8;
  vertical-align: middle;
}

.blog-dashboard-page .post-table tr:last-child td { border-bottom: none; }
.blog-dashboard-page .post-table tr:hover td      { background: #fffbf5; }

.dash-status-badge {
  display: inline-block;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.dash-status-published { background: rgba(58,138,88,.12); color: #267a4c; border: 1px solid rgba(58,138,88,.25); }
.dash-status-draft     { background: rgba(192,122,36,.12); color: #a05c14; border: 1px solid rgba(192,122,36,.25); }

/* ─── Editor Page ───────────────────────────────────────────── */

.blog-editor-page {
  background: #f8f3eb;
  min-height: 100vh;
}

.blog-editor-page .editor-shell {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.2rem;
  align-items: start;
}

.blog-editor-page .editor-main {
  background: #fffdf9;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.4rem;
}

.blog-editor-page .editor-sidebar {
  position: sticky;
  top: 82px;
  background: #fffdf9;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.2rem;
}

.blog-editor-page .editor-sidebar h6 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--copper);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.blog-editor-page .title-input {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.9rem;
  font-weight: 700;
  border: none;
  border-bottom: 2px solid var(--border);
  border-radius: 0;
  background: transparent;
  padding: 0.2rem 0;
  color: var(--kraft-deep);
  width: 100%;
  outline: none;
  line-height: 1.25;
  margin-bottom: 0.55rem;
}

.blog-editor-page .title-input:focus {
  border-bottom-color: var(--gold);
  box-shadow: none;
}

.blog-editor-page .slug-preview {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.blog-editor-page .slug-preview a {
  color: var(--copper);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.editor-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.7rem;
}

.editor-toolbar-row .btn {
  padding: 0.3rem 0.6rem;
  font-size: 0.84rem;
  min-width: 34px;
}

.blog-editor-surface {
  min-height: 380px;
  border: 1px solid #ddd0bb;
  border-radius: 12px;
  background: #fff;
  padding: 1rem;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-dark);
  outline: none;
  overflow-y: auto;
}

.blog-editor-surface:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(199,154,62,.12); }
.blog-editor-surface.drop-active { border-color: var(--copper); background: #fffaef; }
.blog-editor-surface img { max-width: 100%; border-radius: 10px; margin: 0.6rem 0; }

.editor-mode-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.editor-mode-tab {
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--kraft-deep);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .16s ease;
}

.editor-mode-tab.active {
  background: var(--maroon);
  border-color: var(--maroon);
  color: #fff;
}

.editor-word-count {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: right;
  margin-top: 0.4rem;
}

.editor-autosave-indicator {
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.editor-autosave-indicator.saved { color: #3a8a58; }
.editor-autosave-indicator.saving { color: var(--copper); }

/* Cover image preview */
.cover-preview-wrap { position: relative; margin-bottom: 0.65rem; }
.cover-preview-img  { width: 100%; height: 160px; object-fit: cover; border-radius: 12px; border: 1px solid #ddd0be; }
.cover-remove-btn   { position: absolute; top: 0.4rem; right: 0.4rem; }

/* SEO Preview */
.seo-preview-box {
  border: 1px solid #ddd0bb;
  border-radius: 12px;
  padding: 0.75rem;
  background: #fff;
  font-family: Arial, sans-serif;
}

.seo-preview-url   { font-size: 0.8rem; color: #218738; margin-bottom: 0.2rem; }
.seo-preview-title { font-size: 1.1rem; color: #1a0dab; margin-bottom: 0.15rem; cursor: pointer; text-decoration: underline; }
.seo-preview-desc  { font-size: 0.85rem; color: #545454; line-height: 1.4; }

/* Tag input */
.tag-input-wrap {
  border: 1px solid #d8c9b6;
  border-radius: 12px;
  padding: 0.4rem 0.6rem;
  min-height: 42px;
  background: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
  cursor: text;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #fff5e8;
  border: 1px solid #e9d3b8;
  color: #7a4f26;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.tag-chip-remove {
  background: none;
  border: none;
  color: #c07a24;
  cursor: pointer;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1;
  display: flex;
  align-items: center;
}

.tag-input-field {
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.88rem;
  min-width: 80px;
  color: var(--text-dark);
  flex: 1;
}

/* ─── Responsive ─────────────────────────────────────────────── */

@media (max-width: 991.98px) {
  .blog-editor-page .editor-shell {
    grid-template-columns: 1fr;
  }

  .blog-editor-page .editor-sidebar {
    position: static;
  }

  .blog-toc-card { display: none; }
}

@media (max-width: 767.98px) {
  .blog-featured-img,
  .blog-featured-placeholder { height: 220px; }

  .blog-prevnext {
    grid-template-columns: 1fr;
  }

  .blog-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .blog-search-input { min-width: 100%; }
}
