:root {
  color-scheme: light;
  --page: #fffaf3;
  --paper: #ffffff;
  --cream: #fff3e5;
  --cream-2: #f7fbf6;
  --blush: #f6d8d2;
  --coral: #d96f68;
  --teal: #4d877d;
  --teal-dark: #2f625a;
  --honey: #d2aa4f;
  --ink: #2d2924;
  --muted: #746a61;
  --line: #eadbd0;
  --shadow: 0 18px 40px rgba(92, 72, 52, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #fffaf3 44%, #f7fbf6 100%);
  line-height: 1.65;
}

::selection {
  color: var(--ink);
  background: var(--blush);
}

a {
  color: var(--teal-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--coral);
}

main {
  width: min(1080px, 92vw);
  margin: 0 auto;
  padding: 24px 0 56px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin: 0 auto 1.4rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 28px rgba(92, 72, 52, 0.08);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--teal-dark);
  background: var(--cream);
}

.site-nav__toggle {
  display: none;
}

a.site-nav__social {
  flex: 0 0 auto;
  width: 2.55rem;
  min-height: 2.55rem;
  padding: 0;
  border: 1px solid var(--line);
  color: var(--teal-dark);
  background: var(--cream);
}

a.site-nav__social svg {
  width: 1.45rem;
  height: 1.45rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-link svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-nav__social svg text,
.social-link svg text {
  fill: currentColor;
  stroke: none;
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 800;
}

.site-footer {
  width: min(1080px, 92vw);
  margin: 0 auto;
  padding: 0 0 48px;
  text-align: center;
}

.site-footer__brand {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--teal-dark);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 20px rgba(92, 72, 52, 0.08);
  text-decoration: none;
}

.social-link:hover {
  color: var(--coral);
  background: var(--cream);
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(2.75rem, 8vw, 5rem) clamp(1.2rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #fff6ef 58%, #f7fbf6 100%);
  box-shadow: var(--shadow);
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--blush), var(--honey), var(--teal));
}

.eyebrow,
.tag {
  margin: 0 0 0.75rem;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.08;
}

h1 {
  color: var(--ink);
  font-size: clamp(2.4rem, 7vw, 4.6rem);
}

h2 {
  color: var(--teal-dark);
  font-size: clamp(1.65rem, 4vw, 2.4rem);
}

h3 {
  color: var(--ink);
  font-size: 1.25rem;
}

.lede,
.subtitle {
  max-width: 700px;
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.18rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.45rem;
}

.button,
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.72rem 1.1rem;
  border-radius: 999px;
  color: #ffffff;
  background: var(--teal);
  box-shadow: 0 10px 22px rgba(77, 135, 125, 0.22);
  font-weight: 800;
  text-decoration: none;
}

.button:hover,
.cta:hover,
.button:visited,
.cta:visited {
  color: #ffffff;
}

.button:hover,
.cta:hover {
  background: var(--coral);
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--teal-dark);
  font-weight: 800;
}

.intro-band {
  margin: 2rem 0;
  padding: clamp(1.5rem, 4vw, 2.4rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.intro-band p:last-child {
  max-width: 680px;
  margin: 0.8rem auto 0;
  color: var(--muted);
}

section {
  margin-top: 2rem;
}

.section-title {
  margin-bottom: 1rem;
  text-align: center;
}

.topic-grid,
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.card,
article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(92, 72, 52, 0.08);
}

.card {
  padding: 1.25rem;
}

article {
  padding: 1.25rem;
}

article p {
  color: var(--muted);
}

article h3 a {
  color: var(--ink);
  text-decoration: none;
}

article h3 a:hover {
  color: var(--coral);
}

.content-panel {
  width: min(780px, 100%);
  margin: 1.5rem auto 0;
  padding: clamp(1.25rem, 4vw, 2rem);
}

.content-panel p:first-of-type {
  font-size: 1.07rem;
}

.product-list {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.product-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid #dfeee9;
  border-radius: 8px;
  background: var(--cream-2);
}

.product-copy {
  display: grid;
  min-width: 0;
  gap: 0.15rem;
}

.product-copy a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.product-copy a:hover {
  color: var(--coral);
}

.product-copy small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-price,
.product-list strong {
  flex: 0 0 auto;
  color: var(--teal-dark);
  font-size: 0.98rem;
  text-align: right;
  white-space: nowrap;
}

.price-updated {
  min-height: 1.2rem;
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.back-link {
  margin-top: 1.4rem;
}

ul:not(.product-list) {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

@media (max-width: 640px) {
  main {
    width: min(100% - 24px, 1080px);
    padding-top: 14px;
  }

  .site-nav {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.45rem;
    align-items: center;
    border-radius: 8px;
    padding: 0.45rem;
  }

  .site-nav__toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    min-height: 2.7rem;
    border: 0;
    border-radius: 8px;
    color: var(--teal-dark);
    background: var(--cream);
    cursor: pointer;
  }

  .site-nav__toggle span {
    position: absolute;
    width: 1.25rem;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.22s ease, opacity 0.18s ease;
  }

  .site-nav__toggle span:nth-child(1) {
    transform: translateY(-6px);
  }

  .site-nav__toggle span:nth-child(3) {
    transform: translateY(6px);
  }

  .site-nav.is-open .site-nav__toggle span:nth-child(1) {
    transform: rotate(45deg);
  }

  .site-nav.is-open .site-nav__toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-nav.is-open .site-nav__toggle span:nth-child(3) {
    transform: rotate(-45deg);
  }

  .site-nav a {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    min-height: 2.8rem;
    font-size: 0.82rem;
  }

  a.site-nav__social {
    display: inline-flex;
    grid-column: 2;
    grid-row: 1;
    width: 3rem;
    min-height: 2.7rem;
  }

  .site-nav.is-open a:not(.site-nav__social) {
    display: inline-flex;
  }

  .hero,
  .page-hero {
    padding: 2.35rem 1rem;
  }

  .product-list li {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-price,
  .product-list strong {
    text-align: left;
  }
}

/* ===== Must-Have Gear layout (Travel / Daily / Style) ===== */
.gear-section {
  margin-top: 2.5rem;
}

.gear-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.gear-title {
  position: relative;
  margin: 0;
  padding-bottom: 0.55rem;
  color: var(--ink);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.gear-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  border-radius: 2px;
  background: var(--honey);
}

.gear-empty {
  color: var(--muted);
  text-align: center;
  padding: 2rem;
}

.gear-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.gear-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(92, 72, 52, 0.06);
  overflow: hidden;
}

.gear-card--featured {
  grid-column: span 2;
  flex-direction: row;
}

.gear-card__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ececec;
  color: #c2c2c2;
  aspect-ratio: 4 / 3;
}

.gear-card--featured .gear-card__media {
  flex: 0 0 46%;
  aspect-ratio: auto;
  min-height: 260px;
}

.gear-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gear-card__icon {
  font-size: 2.4rem;
  opacity: 0.55;
}

.gear-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 1.1rem 1.15rem 1.15rem;
}

.gear-card--featured .gear-card__body {
  padding: 1.6rem 1.75rem;
  justify-content: center;
}

.gear-card__kicker {
  margin: 0 0 0.4rem;
  color: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gear-card__title {
  margin: 0 0 0.55rem;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  line-height: 1.25;
}

.gear-card--featured .gear-card__title {
  font-size: 1.55rem;
}

.gear-card__desc {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.gear-card--featured .gear-card__desc {
  font-size: 0.98rem;
}

.gear-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
}

.gear-card__price {
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 800;
}

.gear-card__price--muted {
  visibility: hidden;
}

.gear-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 1.05rem;
  border-radius: 999px;
  background: #5b3a2a;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.gear-card__cta:hover,
.gear-card__cta:visited {
  color: #fff;
}

.gear-card__cta:hover {
  background: var(--coral);
}

.gear-card__paw {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.gear-card__shop {
  color: var(--ink);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
}

.gear-card__shop:hover {
  color: var(--coral);
}

@media (max-width: 880px) {
  .gear-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gear-card--featured {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .gear-grid {
    grid-template-columns: 1fr;
  }
  .gear-card--featured {
    grid-column: span 1;
    flex-direction: column;
  }
  .gear-card--featured .gear-card__media {
    flex: 0 0 auto;
    min-height: 200px;
  }
}

/* ===== Admin styles retained from source theme ===== */
.admin-shell {
  width: min(1200px, 96vw);
  margin: 0 auto;
  padding: 1.5rem 0 4rem;
}

.admin-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.admin-header h1 {
  font-size: 1.8rem;
  margin: 0;
}

.admin-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.admin-tabs a {
  padding: 0.7rem 1.1rem;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}

.admin-tabs a.is-active {
  color: var(--ink);
  border-bottom-color: var(--coral);
}

.admin-flash {
  margin: 0 0 1rem;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  background: #e8f3ee;
  color: #2f625a;
  border: 1px solid #cfe6da;
  font-weight: 600;
}

.admin-flash--error {
  background: #fbe6e3;
  color: #8a3a31;
  border-color: #f0c6c0;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.admin-table th,
.admin-table td {
  padding: 0.6rem 0.7rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.admin-table th {
  background: #faf3eb;
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
  position: sticky;
  top: 0;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table .col-id {
  width: 50px;
  color: var(--muted);
}

.admin-table .col-actions {
  width: 1%;
  white-space: nowrap;
}

.admin-table input[type="text"],
.admin-table input[type="date"],
.admin-table input[type="number"],
.admin-table textarea,
.admin-table select {
  width: 100%;
  min-width: 120px;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  background: #fff;
}

.admin-table textarea {
  min-height: 60px;
  resize: vertical;
}

.admin-btn {
  display: inline-block;
  padding: 0.45rem 0.8rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: none;
}

.admin-btn:hover { background: var(--cream); }
.admin-btn--primary { background: var(--teal); color: #fff; border-color: var(--teal); }
.admin-btn--primary:hover { background: var(--teal-dark); color: #fff; }
.admin-btn--danger  { color: #8a3a31; }

.admin-empty {
  padding: 2rem;
  text-align: center;
  color: var(--muted);
}

/* ===== Admin: toolbar, image field, thumbs ===== */
.admin-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.admin-toolbar__count {
  color: var(--muted);
  font-size: 0.85rem;
}

.admin-thumb {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.image-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 160px;
}

.image-current {
  position: relative;
  display: inline-block;
  width: 80px;
  height: 80px;
}

.image-current img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  display: block;
}

.image-remove {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: #8a3a31;
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}

.image-remove:hover { background: #b14538; }

.image-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  cursor: pointer;
}

.image-filename {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  word-break: break-all;
}

/* ===== Public blog ===== */
.blog-feed { margin-top: 1.5rem; display: grid; gap: 1.5rem; }
.blog-empty { text-align: center; color: var(--muted); padding: 2rem; }

.blog-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 1.5rem;
}
.blog-card__date {
  margin: 0 0 0.35rem;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.blog-card__title {
  margin: 0 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}
.blog-card__collapsed {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.25rem;
  align-items: start;
}
.blog-card__thumb img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.blog-card__excerpt p { color: var(--muted); margin: 0 0 1rem; }
.blog-card__actions { display: flex; justify-content: flex-start; margin-top: 1rem; }

/* expanded full layout */
.blog-stage {
  position: relative;
  width: 100%;
  min-height: var(--stage-h, 420px);
  margin-top: 1rem;
}
.blog-content {
  position: relative;
  z-index: 0;
  max-width: 560px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
}
.blog-content p { margin: 0 0 1rem; }
.blog-content h2, .blog-content h3 { margin: 1.2rem 0 0.5rem; color: var(--teal-dark); font-family: Georgia, serif; }
.blog-content ul { margin: 0 0 1rem 1.25rem; }
.blog-content a, .aff-link {
  color: var(--coral);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.blog-img {
  position: absolute;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
  background: #ddd;
}
.blog-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 700px) {
  .blog-card__collapsed { grid-template-columns: 1fr; }
  .blog-stage .blog-img { display: none; }
  .blog-content { max-width: 100%; }
}

/* ===== Blog admin editor modal ===== */
.blog-modal {
  position: fixed; inset: 0; z-index: 1000;
}
.blog-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(20, 16, 12, 0.55);
}
.blog-modal__panel {
  position: relative;
  width: min(1000px, 96vw);
  max-height: 92vh;
  margin: 4vh auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.blog-modal__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: #faf3eb;
}
.blog-modal__head h2 { margin: 0; font-size: 1.2rem; }
.blog-modal__body {
  display: flex; flex-direction: column; gap: 0.85rem;
  padding: 1rem 1.25rem;
  overflow: auto;
}
.blog-modal__foot {
  display: flex; justify-content: flex-end; gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--line);
  background: #fafafa;
}

.blog-modal__row {
  display: flex; gap: 1rem; align-items: end; flex-wrap: wrap;
}
.blog-modal__label {
  display: flex; flex-direction: column; gap: 0.25rem; flex: 1; min-width: 240px;
  font-weight: 700; font-size: 0.85rem; color: var(--ink);
}
.blog-modal__label input {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line); border-radius: 6px;
  font-size: 1rem;
}
.blog-modal__check { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; color: var(--ink); }

.blog-editor-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem;
  padding: 0.5rem; background: #faf6f0; border: 1px solid var(--line); border-radius: 6px;
}
.blog-editor-hint { color: var(--muted); font-size: 0.8rem; margin: 0; }

.blog-editor-stage {
  position: relative;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background:
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(0,0,0,0.015) 12px 24px),
    #fff;
  overflow: hidden;
  min-height: 460px;
}
.blog-editor-stage.is-drop { border-color: var(--coral); background-color: #fff5f1; }

.blog-editor-content {
  position: relative; z-index: 2;
  width: min(560px, 92%);
  margin: 1.5rem auto;
  min-height: 280px;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 1rem; line-height: 1.7;
  outline: none;
}
.blog-editor-content[data-placeholder]:empty::before {
  content: attr(data-placeholder);
  color: #b6ada3;
}
.blog-editor-content a { color: var(--coral); text-decoration: underline; font-weight: 700; }

.blog-editor-images { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.blog-editor-images .edit-img { pointer-events: auto; }

.blog-editor-dropzone {
  position: absolute;
  bottom: 8px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  padding: 0.4rem 0.85rem;
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 0.5rem;
  pointer-events: auto;
}

.edit-img {
  position: absolute;
  border: 2px dashed transparent;
  cursor: move;
  user-select: none;
}
.edit-img:hover, .edit-img:focus-within { border-color: var(--coral); }
.edit-img img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; display: block; border-radius: 4px; }

.img-btn, .img-handle {
  position: absolute;
  width: 22px; height: 22px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  padding: 0; line-height: 1; cursor: pointer;
}
.img-del { top: -10px; right: -10px; color: #8a3a31; }
.img-rotate { top: -28px; left: 50%; transform: translateX(-50%); cursor: grab; background: var(--teal); }
.img-resize { right: -10px; bottom: -10px; cursor: nwse-resize; background: var(--honey); }

@media (max-width: 600px) {
  .blog-modal__panel { margin: 0; max-height: 100vh; height: 100vh; border-radius: 0; }
}

/* ===== Blog: single-stage collapse/expand fix ===== */
[hidden] { display: none !important; }

.blog-card { overflow: hidden; }

.blog-card .blog-stage {
  position: relative;
  width: 100%;
  margin: 1rem 0 0;
  transition: max-height 0.35s ease;
}

/* Collapsed: clamp the stage and fade out the bottom for a "preview" look */
.blog-card:not(.is-expanded) .blog-stage {
  max-height: 240px;
  overflow: hidden;
}
.blog-card:not(.is-expanded) .blog-stage__fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 90px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #ffffff 88%);
  pointer-events: none;
}

/* Expanded: stage uses computed height from saved image bottoms */
.blog-card.is-expanded .blog-stage {
  min-height: var(--stage-h, 460px);
  max-height: none;
}
.blog-card.is-expanded .blog-stage__fade { display: none; }

/* Per-card head + actions */
.blog-card__actions { display: flex; justify-content: flex-start; margin-top: 1rem; }
