/* =====================================================
   Champolo Blog — Design Tokens
   Editorial calm base, bold clay accent, apothecary-stamp
   signature motif.
   ===================================================== */
:root {
  --paper:      #F6F1E7;
  --paper-soft: #EFE7D6;
  --panel:      #FFFDF9;
  --ink:        #22281F;
  --ink-soft:   #4B564A;
  --ink-faint:  #7C8574;

  --green-deep: #2F5D45;
  --green-mid:  #4C7A5E;
  --green-line: #A9BFAC;
  --sage:       #E3EADC;

  --clay:       #C1602A;
  --clay-deep:  #93441C;
  --clay-soft:  #F3E1D3;

  --gold:       #C79A2E;

  --border:     rgba(34, 40, 31, 0.14);
  --border-soft:rgba(34, 40, 31, 0.08);
  --shadow:     0 10px 30px rgba(34, 40, 31, 0.08);
  --shadow-lg:  0 20px 45px rgba(34, 40, 31, 0.14);

  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --max: 1180px;
}

/* ===================== Reset ===================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay-deep);
  font-weight: 500;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  color: var(--ink);
  margin-top: 10px;
}

.section-head p {
  color: var(--ink-soft);
  margin-top: 12px;
  font-size: 1.02rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ===================== Top bar ===================== */
.topbar {
  background: var(--paper);
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(6px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--green-deep);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand svg { width: 26px; height: 26px; flex-shrink: 0; }

.brand-word { display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; }

.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clay-deep);
  background: var(--clay-soft);
  padding: 3px 8px;
  border-radius: 20px;
  vertical-align: middle;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
}

.topbar-links a { text-decoration: none; color: var(--ink-soft); transition: color 0.2s; white-space: nowrap; }
.topbar-links a:hover { color: var(--green-deep); }

.topbar-links .btn-store {
  background: var(--green-deep);
  color: var(--paper);
  padding: 9px 18px;
  border-radius: 30px;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.topbar-links .btn-store:hover { background: var(--clay); transform: translateY(-1px); }

@media (max-width: 640px) {
  .topbar-links a.hide-mobile { display: none; }
}

/* ===================== Hero ===================== */
.hero {
  padding: 64px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  line-height: 1.12;
  color: var(--ink);
  margin: 16px 0 20px;
}

.hero h1 em {
  font-style: italic;
  color: var(--green-deep);
}

.hero p.lead {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 480px;
  margin-bottom: 30px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.96rem;
  padding: 13px 24px;
  border-radius: 30px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--green-deep);
  color: var(--paper);
}
.btn-primary:hover { background: #244a37; transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-clay {
  background: var(--clay);
  color: #FFF7F0;
}
.btn-clay:hover { background: var(--clay-deep); transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--green-deep); color: var(--green-deep); }

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-frame {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--sage), var(--paper-soft));
  border: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stamp {
  position: absolute;
  bottom: -28px;
  left: -28px;
  width: 132px;
  height: 132px;
  filter: drop-shadow(0 8px 16px rgba(34,40,31,0.18));
}

.stamp .spin {
  animation: spin 34s linear infinite;
  transform-origin: 60px 60px;
}

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

/* ===================== Trust section ===================== */
.trust-section {
  padding: 90px 0 70px;
  background: var(--panel);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.trust-card {
  background: var(--paper);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.trust-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--green-line);
}

.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--green-deep);
}
.trust-icon svg { width: 20px; height: 20px; }

.trust-card h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--ink);
}

.trust-card p { color: var(--ink-soft); font-size: 0.98rem; }

.trust-disclaimer {
  margin-top: 40px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--ink-faint);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.trust-disclaimer strong { color: var(--ink-soft); }

/* ===================== Featured tips ===================== */
.featured-content { padding: 90px 0; }

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.content-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  background: var(--panel);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.content-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.content-card .tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clay-deep);
  background: var(--clay-soft);
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.content-card h3 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.content-card p { color: var(--ink-soft); font-size: 0.96rem; margin-bottom: 18px; }

.read-more {
  font-weight: 600;
  text-decoration: none;
  color: var(--green-deep);
  font-size: 0.94rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease, color 0.2s ease;
}
.read-more:hover { gap: 10px; color: var(--clay); }

/* ===================== Product spotlight ===================== */
.product-section {
  padding: 80px 0;
  background: var(--green-deep);
  color: var(--paper);
}

.product-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.product-card .eyebrow { color: var(--gold); }

.product-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 12px 0 16px;
}

.product-card p {
  color: rgba(246, 241, 231, 0.82);
  margin-bottom: 26px;
  font-size: 1.02rem;
}

/* ===================== Blog grid ===================== */
.blog-section { padding: 90px 0; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.blog-card,
article.blog-post {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover,
article.blog-post:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.blog-card > a,
article.blog-post > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.blog-card img,
article.blog-post img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.blog-content,
article.blog-post h2 {
  font-family: var(--font-display);
}

.blog-content { padding: 24px; }

article.blog-post h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 20px 20px 8px;
  color: var(--ink);
}

.blog-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

article.blog-post .meta,
.blog-content .meta {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  margin: 0 20px 12px;
}

.blog-content .meta { margin: 0 0 12px; }

article.blog-post p,
.blog-content p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin: 0 20px 20px;
}

.blog-content p { margin: 0 0 18px; }

.continue-reading {
  font-weight: 600;
  color: var(--clay);
  text-decoration: none;
}

.empty-state {
  text-align: center;
  color: var(--ink-faint);
  padding: 40px 0;
  grid-column: 1 / -1;
}

/* ===================== Pagination ===================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 48px 0 0;
  flex-wrap: wrap;
}

.pagination button,
.page-btn {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 9px 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagination button:hover:not(:disabled),
.page-btn:hover { background: var(--sage); border-color: var(--green-line); }

.pagination button.active,
.page-btn.active {
  background: var(--green-deep);
  color: var(--paper);
  border-color: var(--green-deep);
}

.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }

.pagination .dots { color: var(--ink-faint); padding: 0 4px; }

@media (max-width: 480px) {
  .pagination {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 6px;
    padding: 4px 2px 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .pagination::-webkit-scrollbar { display: none; }
  .pagination button,
  .page-btn {
    padding: 8px 12px;
    font-size: 0.84rem;
    flex-shrink: 0;
  }
}

/* ===================== Newsletter ===================== */
.subscription-section {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: 64px 40px;
  margin: 40px auto 100px;
  text-align: center;
  max-width: 760px;
}

.subscription-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  margin-bottom: 12px;
}

.subscription-section p {
  color: rgba(246, 241, 231, 0.75);
  margin-bottom: 30px;
  font-size: 1rem;
}

.subscription-section p strong { color: var(--gold); }

#subscriptionForm {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

#subscriptionForm input {
  padding: 13px 18px;
  border-radius: 30px;
  border: 1.5px solid rgba(246,241,231,0.25);
  background: rgba(246,241,231,0.06);
  color: var(--paper);
  font-size: 0.96rem;
  min-width: 200px;
  flex: 1;
  max-width: 260px;
}

#subscriptionForm input::placeholder { color: rgba(246,241,231,0.5); }
#subscriptionForm input:focus { outline: none; border-color: var(--clay); background: rgba(246,241,231,0.1); }

#subscriptionForm button {
  background: var(--clay);
  color: #FFF7F0;
  border: none;
  padding: 13px 26px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
#subscriptionForm button:hover { background: var(--clay-deep); transform: translateY(-2px); }

#subscriptionMessage {
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 500;
  min-height: 1.2em;
}

/* ===================== Footer ===================== */
.footer {
  background: var(--paper-soft);
  border-top: 1px solid var(--border-soft);
  padding: 56px 0 34px;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 36px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-brand-col { text-align: center; }

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 8px;
}
.footer-logo svg { width: 22px; height: 22px; flex-shrink: 0; }

.footer-rights { font-size: 0.86rem; color: var(--ink-faint); margin-bottom: 14px; }

.footer .social-icons { display: flex; gap: 10px; justify-content: center; }

.footer .social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.footer .social-icon:hover { transform: translateY(-3px) scale(1.06); box-shadow: var(--shadow); filter: brightness(1.08); }

.footer .icon-whatsapp  { background: #25D366; }
.footer .icon-facebook  { background: #1877F2; }
.footer .icon-instagram { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.footer .icon-youtube   { background: #FF0000; }

.footer-title {
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin-bottom: 12px;
}

.footer-link {
  display: block;
  color: var(--ink-soft);
  text-decoration: none;
  margin: 6px 0;
  font-size: 0.94rem;
  transition: color 0.2s ease, transform 0.2s ease;
}
.footer-link:hover { color: var(--clay); transform: translateX(2px); text-decoration: underline; }

@media (min-width: 768px) {
  .footer-container { flex-direction: row; justify-content: space-between; }
  .footer-section { flex: 1; }
  .footer-brand-col { text-align: left; }
  .footer .social-icons { justify-content: flex-start; }
}

@media (max-width: 767px) {
  .footer-section:nth-child(2),
  .footer-section:nth-child(3) { text-align: left; }
}

/* ===================== Urgent care floating button ===================== */
#urgent-care-btn {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: #25d366;
  color: white;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.22);
  transition: all 0.35s ease;
  white-space: nowrap;
  overflow: hidden;
  z-index: 999;
  font-size: 0.92rem;
}

#urgent-care-btn .extra-text {
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transition: all 0.35s ease;
}
#urgent-care-btn.expanded { background: #128c7e; padding-right: 26px; }
#urgent-care-btn.expanded .extra-text { opacity: 1; max-width: 420px; }

/* ===================== Modal ===================== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(34,40,31,0.55);
  overflow-y: auto;
}
.modal-content {
  background: var(--panel);
  margin: 8% auto;
  padding: 30px;
  max-width: 680px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
}
.modal-content h2 { font-family: var(--font-display); color: var(--green-deep); margin-bottom: 14px; }
.modal .close { float: right; font-size: 1.4rem; cursor: pointer; color: var(--ink-faint); }

/* ===================== Focus states ===================== */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}

/* ===================== Responsive ===================== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 360px; margin: 0 auto; }
  .hero-inner > div:first-child { text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .trust-grid,
  .content-grid { grid-template-columns: 1fr; }
  .content-card .tag { display: table; margin: 0 auto 14px; }
}

@media (max-width: 720px) {
  .blog-grid { grid-template-columns: 1fr; }
  .hero { padding: 44px 0 60px; }
  .trust-section,
  .featured-content,
  .blog-section { padding: 60px 0; }
  .subscription-section { padding: 44px 24px; margin: 20px 16px 70px; }
}

/* =====================================================
   Post page
   ===================================================== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-soft);
  text-decoration: none;
  margin-bottom: 24px;
  transition: color 0.2s ease, gap 0.2s ease;
}
.back-link:hover { color: var(--green-deep); gap: 10px; }

.post-hero { padding: 44px 0 8px; }

.post-hero .eyebrow { display: block; margin-bottom: 14px; }

.post-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.18;
  color: var(--ink);
  max-width: 820px;
}

.post-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 18px 0 30px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-faint);
}

.share-icons { display: flex; align-items: center; gap: 10px; }
.share-label { font-family: var(--font-body); font-weight: 600; color: var(--ink-soft); font-size: 0.86rem; margin-right: 2px; }

.share-icons a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  font-size: 0.95rem;
}
.share-icons a:hover { transform: translateY(-2px) scale(1.06); box-shadow: var(--shadow); filter: brightness(1.08); }
.share-icons a.icon-whatsapp  { background: #25D366; }
.share-icons a.icon-facebook  { background: #1877F2; }
.share-icons a.icon-instagram { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }

.post-cover {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  margin-bottom: 40px;
}

.post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
  padding-bottom: 30px;
}

.post-excerpt {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--green-deep);
  border-left: 3px solid var(--clay);
  padding-left: 18px;
  margin-bottom: 30px;
}

.post-body { font-size: 1.05rem; color: var(--ink); }
.post-body h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  margin: 42px 0 16px;
  color: var(--ink);
}
.post-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.28rem;
  margin: 34px 0 14px;
  color: var(--ink);
}
.post-body p { margin-bottom: 20px; color: var(--ink-soft); }
.post-body ul, .post-body ol { margin: 0 0 20px 22px; color: var(--ink-soft); }
.post-body li { margin-bottom: 8px; }
.post-body img { width: 100%; border-radius: var(--radius-md); margin: 26px 0; }
.post-body a { color: var(--green-deep); font-weight: 600; }
.post-body blockquote {
  border-left: 3px solid var(--clay);
  background: var(--clay-soft);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink);
  font-style: italic;
  margin: 26px 0;
}
.post-body code {
  font-family: var(--font-mono);
  background: var(--sage);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}
.post-body pre {
  background: var(--ink);
  color: var(--paper);
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin: 26px 0;
}
.post-body pre code { background: none; color: inherit; padding: 0; }

.video-embed {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 26px 0;
  background: var(--ink);
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.post-sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 20px; }

.sidebar-card {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 22px;
}
.sidebar-card h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--ink);
}
.sidebar-card p { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 14px; }

@media (max-width: 980px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .post-sidebar .sidebar-card { flex: 1; min-width: 240px; }
}

/* ---------- Rating ---------- */
.rating-card { text-align: center; }
.stars { display: inline-flex; gap: 8px; font-size: 2.1rem; cursor: pointer; }
.star { color: var(--border); transition: color 0.2s ease, transform 0.15s ease; }
.star:hover, .star.selected { color: var(--clay); transform: scale(1.12); }
.rating-message { margin-top: 10px; font-size: 0.9rem; color: var(--ink-soft); min-height: 1.2em; }

/* ---------- Gentle follow-up popup ---------- */
.care-popup {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 24px 26px;
  max-width: 340px;
  text-align: left;
  display: none;
  z-index: 9998;
}
.care-popup.active { display: block; animation: fadeSlideUp 0.4s ease; }
@keyframes fadeSlideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.care-popup h3 { font-family: var(--font-display); font-size: 1.2rem; color: var(--green-deep); margin-bottom: 8px; }
.care-popup p { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 16px; }
.care-popup .close-popup { position: absolute; top: 10px; right: 14px; cursor: pointer; color: var(--ink-faint); font-size: 1.2rem; }

/* ---------- Read next ---------- */
.readnext-section { padding: 30px 0 90px; }
.readnext-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.readnext-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--ink); }

/* =====================================================
   Store promo / native ad components
   ===================================================== */
.promo-section { padding: 70px 0 90px; background: var(--panel); border-top: 1px solid var(--border-soft); }
.promo-section .section-head { margin-bottom: 36px; }

/* Edge-to-edge scrolling marquee. Track content is duplicated in JS so the
   auto-scroll loop resets invisibly. Native overflow-x scroll means the
   prev/next arrows and touch swipe both work directly on scrollLeft. */
.marquee-wrap {
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee-track {
  display: flex;
  gap: 20px;
  padding: 0 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.marquee-track::-webkit-scrollbar { display: none; }

.marquee-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.marquee-arrow:hover { background: var(--green-deep); color: var(--paper); transform: translateY(-50%) scale(1.06); }
.marquee-prev { left: 6px; }
.marquee-next { right: 6px; }

@media (max-width: 640px) {
  .marquee-arrow { width: 34px; height: 34px; font-size: 1.2rem; }
}

.promo-card {
  background: var(--paper);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  width: 250px;
  flex-shrink: 0;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.promo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.promo-card img { width: 100%; height: 150px; object-fit: cover; }

.promo-card .promo-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }

.promo-tag {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
}

.promo-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.3;
}

.promo-card p { font-size: 0.86rem; color: var(--ink-soft); margin-bottom: 12px; flex: 1; }

.promo-price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.promo-price .now { font-weight: 700; color: var(--green-deep); font-size: 1.02rem; }
.promo-price .was { font-size: 0.86rem; color: var(--ink-faint); text-decoration: line-through; }

/* Native in-article promo card. This whole component uses <span>, not
   <div>/<h4>/<p>, because {{promo:slug}} often lands inside a markdown
   <p> — see the comment in promos.js's inlinePromoHTML for why. */
.inline-promo {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--sage);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 12px 0;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}
.inline-promo:hover { transform: translateY(-2px); }
.inline-promo img { width: 68px; height: 68px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.inline-promo .inline-promo-body { display: flex; flex-direction: column; flex: 1; }
.inline-promo .inline-promo-title { font-family: var(--font-display); font-size: 0.98rem; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.inline-promo .inline-promo-desc { font-size: 0.84rem; color: var(--ink-soft); margin-bottom: 4px; }
.inline-promo .promo-price .now { font-size: 0.94rem; }

@media (max-width: 560px) {
  .promo-card { width: 210px; }
  .inline-promo { flex-direction: column; align-items: flex-start; }
  .inline-promo img { width: 100%; height: 140px; }
}

/* =====================================================
   Global responsive polish
   ===================================================== */
html, body { overflow-x: hidden; }

@media (max-width: 480px) {
  .brand { font-size: 1.12rem; gap: 8px; }
  .brand svg { width: 22px; height: 22px; }
  .brand-tag { font-size: 0.54rem; padding: 2px 6px; }
  .topbar-inner { padding: 12px 16px; gap: 10px; }
  .topbar-links { gap: 12px; }
  .btn-store { padding: 8px 14px !important; font-size: 0.86rem; }

  .stamp { width: 96px; height: 96px; bottom: -16px; left: -16px; }

  .hero-ctas .btn { flex: 1 1 auto; justify-content: center; }

  .subscription-section #subscriptionForm { flex-direction: column; align-items: stretch; }
  .subscription-section #subscriptionForm input { max-width: none; }

  #urgent-care-btn { padding: 10px 16px; font-size: 0.8rem; bottom: 16px; right: 16px; gap: 6px; }
  #urgent-care-btn i { font-size: 0.9rem; }
}

@media (max-width: 380px) {
  .topbar-links .btn-store span { display: none; }
}

/* ===================== Mobile kebab menu ===================== */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  padding: 4px 6px;
}

.mobile-menu-panel {
  display: none;
  flex-direction: column;
  background: var(--panel);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 6px 20px 14px;
}
.mobile-menu-panel.open { display: flex; }

.mobile-menu-panel a,
.mobile-menu-panel button {
  background: none;
  border: none;
  text-align: left;
  padding: 12px 4px;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  cursor: pointer;
  border-bottom: 1px solid var(--border-soft);
}
.mobile-menu-panel a:last-child,
.mobile-menu-panel button:last-child { border-bottom: none; }
.mobile-menu-panel a:hover,
.mobile-menu-panel button:hover { color: var(--green-deep); }

@media (max-width: 640px) {
  .mobile-menu-btn { display: block; }
}

/* ===================== Search modal ===================== */
.search-modal-content { max-width: 560px; }
.search-input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 30px;
  border: 1.5px solid var(--border);
  background: var(--paper);
  font-size: 1rem;
  margin: 6px 0 20px;
}
.search-input:focus { outline: none; border-color: var(--green-deep); }
.search-results { display: flex; flex-direction: column; gap: 4px; max-height: 50vh; overflow-y: auto; }
.search-result-item {
  display: block;
  padding: 12px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  transition: background 0.2s ease;
}
.search-result-item:hover { background: var(--sage); }
.search-empty { color: var(--ink-faint); font-size: 0.92rem; padding: 10px; }

/* =====================================================
   Admin panel
   ===================================================== */
.admin-shell { max-width: 760px; margin: 0 auto; padding: 48px 24px 100px; }

.admin-card {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}

.login-card { max-width: 420px; margin: 90px auto; text-align: center; }
.login-card h2 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 8px; color: var(--ink); }
.login-card p { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 26px; }

.field { margin-bottom: 18px; text-align: left; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 6px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--ink);
  transition: border-color 0.2s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green-deep); }
.field textarea { resize: vertical; min-height: 90px; }
.field textarea#postContent { min-height: 280px; font-family: var(--font-mono); font-size: 0.88rem; line-height: 1.6; }
.field .hint { font-size: 0.78rem; color: var(--ink-faint); margin-top: 6px; }

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 14px;
}

.admin-welcome { font-size: 0.92rem; color: var(--ink-soft); }
.admin-welcome strong { color: var(--ink); }

.admin-tabs { display: flex; gap: 8px; margin-bottom: 26px; border-bottom: 1px solid var(--border-soft); }
.admin-tab {
  background: none;
  border: none;
  padding: 10px 4px;
  margin-right: 20px;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--ink-faint);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.admin-tab.active { color: var(--green-deep); border-color: var(--green-deep); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

.draft-indicator { font-size: 0.78rem; color: var(--ink-faint); margin-bottom: 16px; font-family: var(--font-mono); }

.posts-list { display: flex; flex-direction: column; gap: 12px; }

.post-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--paper);
}

.post-row .post-row-title { flex: 1; min-width: 0; }
.post-row h4 { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--ink); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-row .post-row-meta { font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-faint); }

.status-badge {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  flex-shrink: 0;
}
.status-badge.published { background: var(--sage); color: var(--green-deep); }
.status-badge.scheduled { background: var(--clay-soft); color: var(--clay-deep); }

.post-row-actions { display: flex; gap: 8px; flex-shrink: 0; }
.icon-btn {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 10px;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--ink-soft);
  transition: all 0.2s ease;
}
.icon-btn:hover { border-color: var(--green-deep); color: var(--green-deep); }
.icon-btn.danger:hover { border-color: #c0392b; color: #c0392b; }

.admin-empty { text-align: center; color: var(--ink-faint); padding: 30px 0; font-size: 0.92rem; }

.security-note {
  background: var(--clay-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.82rem;
  color: var(--clay-deep);
  margin-bottom: 24px;
}

@media (max-width: 640px) {
  .admin-shell { padding: 28px 16px 80px; }
  .admin-card { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .post-row { flex-wrap: wrap; }
}
