/* ─────────────────────────────────────────────────────────────────────────
   MiyoLash design system
   Style: Editorial Grid / Magazine + Bento accents
   ───────────────────────────────────────────────────────────────────────── */

/* ── Tokens ── */
:root {
  --ml-black:   #0A0A0A;
  --ml-pink:    #CC66BB;
  --ml-pink-2:  #B14FA1;
  --ml-cream:   #FAF7F5;
  --ml-paper:   #F5F2EE;
  --ml-line:    #E7E3DD;
  --ml-text:    #1A1A1A;
  --ml-mute:    #6B6B6B;
  --ml-radius:  16px;
  --ml-radius-lg: 24px;
  --ml-shadow:    0 1px 2px rgba(0,0,0,0.04), 0 4px 14px rgba(0,0,0,0.06);
  --ml-shadow-h:  0 6px 22px rgba(0,0,0,0.10);
  --ml-trans:     220ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ── Base fonts ── */
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ml-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6, nav, .ml-display, .ml-eyebrow { font-family: 'Abel', sans-serif; }

/* Editorial typographic scale */
.ml-display    { font-family: 'Abel', sans-serif; font-weight: 400; letter-spacing: 0.04em; line-height: 1.05; }
.ml-eyebrow    { font-family: 'Abel', sans-serif; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ml-pink); }
.ml-eyebrow-mute { font-family: 'Abel', sans-serif; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ml-mute); }
.ml-rule       { border: 0; border-top: 1px solid var(--ml-line); margin: 0; }

/* ── Buttons ── */
.ml-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'Abel', sans-serif; font-size: 0.95rem; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none; cursor: pointer;
  padding: 0.85rem 1.6rem; border-radius: 999px; border: 1px solid transparent;
  transition: background var(--ml-trans), color var(--ml-trans), border-color var(--ml-trans), transform var(--ml-trans);
}
.ml-btn-primary  { background: var(--ml-pink); color: #fff; }
.ml-btn-primary:hover  { background: var(--ml-pink-2); }
.ml-btn-dark     { background: var(--ml-black); color: #fff; }
.ml-btn-dark:hover     { background: #222; }
.ml-btn-ghost    { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.ml-btn-ghost:hover    { background: rgba(255,255,255,0.08); border-color: #fff; }
.ml-btn-outline  { background: transparent; color: var(--ml-black); border-color: var(--ml-black); }
.ml-btn-outline:hover  { background: var(--ml-black); color: #fff; }

/* ── Header ── */
.desktop-only { display: flex; }
.mobile-only  { display: none !important; }
@media (max-width: 1100px) {
  .desktop-only { display: none !important; }
  .mobile-only  { display: flex !important; }
}
.hamburger-btn {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; cursor: pointer; background: transparent; border: none;
  transition: background var(--ml-trans);
}
.hamburger-btn:hover { background: rgba(0,0,0,0.06); }

.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--ml-line);
  transition: box-shadow var(--ml-trans);
}
.site-header.scrolled { box-shadow: 0 4px 18px rgba(0,0,0,0.06); }

.site-header-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between; height: 76px;
}
.site-logo { text-decoration: none; display: inline-flex; align-items: baseline; line-height: 1; }
.site-logo .miyo  { font-family: 'Abel', sans-serif; font-size: 1.85rem; color: var(--ml-black); letter-spacing: 0.04em; }
.site-logo .lash  { font-family: 'Abel', sans-serif; font-size: 1.85rem; color: var(--ml-pink);  letter-spacing: 0.04em; }
.site-nav { display: flex; align-items: center; gap: 2.25rem; }
.site-nav a {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; text-decoration: none; color: var(--ml-black);
  position: relative; padding: 0.4rem 0;
  transition: color var(--ml-trans);
}
.site-nav a:hover { color: var(--ml-pink); }
.site-nav a.is-active { color: var(--ml-pink); }
.site-nav a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--ml-pink); border-radius: 2px;
}

#mobile-menu {
  display: none; position: fixed; top: 76px; left: 0; right: 0; z-index: 49;
  background: white; border-bottom: 1px solid var(--ml-line);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10); padding: 1.25rem 1.5rem;
}
#mobile-menu.open { display: block; }
#mobile-menu nav { display: flex; flex-direction: column; }
#mobile-menu a {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.92rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; text-decoration: none; color: var(--ml-black);
  padding: 0.95rem 0; border-bottom: 1px solid var(--ml-line);
}
#mobile-menu a:last-child { border-bottom: 0; }
#mobile-menu a.is-active { color: var(--ml-pink); }

/* ── Page hero ── */
.page-hero {
  background: var(--ml-black); color: #fff;
  padding: clamp(2.5rem, 6vw, 4.5rem) 2rem;
  text-align: center;
}
.page-hero h1 {
  font-family: 'Abel', sans-serif; font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  letter-spacing: 0.08em; text-transform: uppercase; margin: 0;
}
.page-hero p {
  font-size: 1.02rem; color: rgba(255,255,255,0.7);
  max-width: 56ch; margin: 0.75rem auto 0; line-height: 1.7;
}

/* Category pills row */
.cat-row { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 1.5rem; }
.cat-pill {
  font-family: 'Abel', sans-serif; font-size: 0.82rem; letter-spacing: 0.12em;
  text-transform: uppercase; text-decoration: none; color: rgba(255,255,255,0.7);
  background: transparent; border: 1px solid rgba(255,255,255,0.25);
  padding: 0.45rem 1.1rem; border-radius: 999px;
  transition: all var(--ml-trans);
}
.cat-pill:hover { color: #fff; border-color: rgba(255,255,255,0.6); }
.cat-pill.is-active { background: var(--ml-pink); color: #fff; border-color: var(--ml-pink); }

/* ── Editorial post card ── */
.post-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--ml-line); border-radius: var(--ml-radius);
  overflow: hidden; text-decoration: none; color: inherit;
  transition: transform var(--ml-trans), box-shadow var(--ml-trans), border-color var(--ml-trans);
}
.post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--ml-shadow-h);
  border-color: #d9d4cc;
}
.post-card .img-wrap {
  position: relative; aspect-ratio: 16 / 10; background: var(--ml-paper); overflow: hidden;
}
.post-card .img-wrap img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 600ms cubic-bezier(0.2,0.7,0.2,1);
}
.post-card:hover .img-wrap img { transform: scale(1.04); }
.post-card .body {
  padding: 1.1rem 1.25rem 1.3rem;
  display: flex; flex-direction: column; gap: 0.45rem; flex: 1;
}
.post-card .title {
  font-family: 'Abel', sans-serif; font-size: 1.18rem; line-height: 1.3;
  color: var(--ml-black); letter-spacing: 0.01em;
}
.post-card .excerpt { font-size: 0.92rem; color: var(--ml-mute); line-height: 1.6; margin: 0; }
.post-card .meta {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; color: #9a9a9a; margin-top: auto;
}
.post-card .meta::before { content: ""; width: 18px; height: 1px; background: #cfcfcf; }

/* Editorial featured (1 large + 2 stacked) */
.feature-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem;
}
.feature-grid .feature-stack { display: grid; grid-template-rows: 1fr 1fr; gap: 1.5rem; }
.feature-grid .post-card.is-feature .img-wrap { aspect-ratio: 4 / 3; }
.feature-grid .post-card.is-feature .title { font-size: 1.6rem; }
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid .feature-stack { grid-template-rows: auto auto; }
}

/* ── Bento category cards ── */
.bento {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
@media (max-width: 900px) { .bento { grid-template-columns: 1fr; } }
.bento-card {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--ml-radius-lg); aspect-ratio: 4 / 5;
  text-decoration: none; color: inherit;
  background: var(--ml-black);
  transition: transform var(--ml-trans);
}
.bento-card:hover { transform: translateY(-3px); }
.bento-card img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; opacity: 0.7;
  transition: transform 600ms cubic-bezier(0.2,0.7,0.2,1), opacity var(--ml-trans);
}
.bento-card:hover img { transform: scale(1.04); opacity: 0.55; }
.bento-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.85) 100%);
}
.bento-card .body {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.5rem 1.6rem;
}
.bento-card .body .ml-eyebrow { color: var(--ml-pink); }
.bento-card .body .title {
  font-family: 'Abel', sans-serif; font-size: 1.7rem;
  color: #fff; letter-spacing: 0.02em; line-height: 1.1;
  margin: 0.4rem 0 0.5rem;
}
.bento-card .body .desc { color: rgba(255,255,255,0.78); font-size: 0.92rem; line-height: 1.55; }
.bento-card .body .arrow {
  margin-top: 0.85rem; display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: 'Abel', sans-serif; font-size: 0.8rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ml-pink);
}

/* ── Product tile ── */
.product-tile {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--ml-line); border-radius: var(--ml-radius);
  overflow: hidden; text-decoration: none; color: inherit;
  transition: transform var(--ml-trans), box-shadow var(--ml-trans), border-color var(--ml-trans);
}
.product-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--ml-shadow-h);
  border-color: #d9d4cc;
}
.product-tile .img-wrap { aspect-ratio: 1 / 1; background: var(--ml-paper); overflow: hidden; }
.product-tile .img-wrap img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 600ms cubic-bezier(0.2,0.7,0.2,1);
}
.product-tile:hover .img-wrap img { transform: scale(1.05); }
.product-tile .body {
  padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column;
  gap: 0.6rem; flex: 1;
}
.product-tile .title {
  font-family: 'Abel', sans-serif; font-size: 1.02rem; line-height: 1.3;
  color: var(--ml-black);
}
.product-tile .cta {
  display: inline-flex; align-items: center; gap: 0.35rem;
  margin-top: auto; align-self: flex-start;
  font-family: 'Abel', sans-serif; font-size: 0.78rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--ml-pink); color: #fff;
  padding: 0.4rem 0.9rem; border-radius: 999px;
  transition: background var(--ml-trans);
}
.product-tile:hover .cta { background: var(--ml-pink-2); }

/* ── Section helpers ── */
.section { max-width: 1400px; margin: 0 auto; padding: clamp(2.5rem, 5vw, 4.5rem) 2rem; }
.section-tight { max-width: 1200px; margin: 0 auto; padding: clamp(2rem, 4vw, 3.5rem) 2rem; }
.section-head {
  display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap;
  gap: 1rem; margin-bottom: 1.75rem;
}
.section-head h2 {
  font-family: 'Abel', sans-serif; font-weight: 400; margin: 0;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: 0.04em;
  color: var(--ml-black);
}
.section-head .more {
  font-family: 'Abel', sans-serif; font-size: 0.85rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ml-pink); text-decoration: none;
}
.section-head .more:hover { text-decoration: underline; }

/* ── Footer ── */
.site-footer {
  background: var(--ml-black); color: #fff;
  padding: 3.5rem 2rem 1.5rem; margin-top: 4rem;
}
.site-footer-inner {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem;
}
@media (max-width: 760px) { .site-footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .site-footer-inner { grid-template-columns: 1fr; } }
.site-footer h4 {
  font-family: 'Abel', sans-serif; font-size: 0.78rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: #6b6b6b; margin: 0 0 0.9rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.site-footer a { color: #d4d4d4; text-decoration: none; font-size: 0.92rem; }
.site-footer a:hover { color: var(--ml-pink); }
.site-footer .blurb { color: #9a9a9a; font-size: 0.92rem; line-height: 1.7; max-width: 30ch; }
.site-footer .footer-bottom {
  max-width: 1400px; margin: 2.25rem auto 0; padding-top: 1.25rem;
  border-top: 1px solid #1f1f1f;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
  font-size: 0.78rem; color: #777;
}

/* ─────────────────────────────────────────────────────────────────────────
   Post page (used by build-posts.js)
   ───────────────────────────────────────────────────────────────────────── */

/* Editorial split header */
.post-header {
  display: grid; grid-template-columns: 1fr 1fr; min-height: 360px;
}
.post-header-left {
  background: var(--ml-black); padding: 2.5rem 5% 2.5rem 8%;
  display: flex; flex-direction: column; justify-content: center;
  align-items: flex-start; gap: 0.85rem;
}
.post-header-right { overflow: hidden; position: relative; background: var(--ml-paper); }
.post-header-right img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-header-fullwidth {
  background: var(--ml-black); padding: 3.5rem 8%;
  display: flex; flex-direction: column; justify-content: center;
  align-items: flex-start; gap: 0.85rem;
}
@media (max-width: 900px) {
  .post-header { grid-template-columns: 1fr; }
  .post-header-right { min-height: 240px; }
  .post-header-left { padding: 2rem 2rem; }
  .post-header-fullwidth { padding: 2.5rem 2rem; }
}

.post-body {
  display: grid; grid-template-columns: 1fr 320px;
  gap: 3.5rem; max-width: 1200px; margin: 3rem auto; padding: 0 2rem;
}
@media (max-width: 1024px) {
  .post-body { grid-template-columns: 1fr; gap: 2rem; }
  .post-sidebar { display: none; }
  .products-widget { margin: 1.75rem -2rem; padding: 0.25rem 2rem 0.75rem; }
}

.post-content {
  max-width: 720px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.08rem; line-height: 1.85; color: var(--ml-text);
}
.post-content > p:first-of-type::first-letter {
  font-family: 'Abel', sans-serif;
  float: left; font-size: 4em; line-height: 0.85;
  padding: 0.1em 0.12em 0 0; color: var(--ml-pink);
}
.post-content h2 {
  font-family: 'Abel', sans-serif; font-size: 1.85rem; font-weight: 400;
  letter-spacing: 0.04em; margin: 2.5rem 0 0.85rem; color: var(--ml-black);
  scroll-margin-top: 96px;
}
.post-content h3 {
  font-family: 'Abel', sans-serif; font-size: 1.4rem; font-weight: 400;
  letter-spacing: 0.03em; margin: 1.75rem 0 0.6rem; color: var(--ml-black);
  scroll-margin-top: 96px;
}
.post-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 1.75rem 0; }
.post-content a { color: var(--ml-pink); text-decoration: underline; text-underline-offset: 3px; }
.post-content a:hover { color: var(--ml-pink-2); }
.post-content blockquote {
  border-left: 3px solid var(--ml-pink); margin: 1.75rem 0; padding: 0.4rem 0 0.4rem 1.25rem;
  font-style: italic; color: #444;
}
.post-content p.caption { font-size: 0.82rem; color: var(--ml-mute); text-align: center; margin: -1rem 0 1.5rem; }

/* Sidebar */
.post-sidebar { display: flex; flex-direction: column; gap: 1.5rem; position: sticky; top: 96px; align-self: start; }
.sidebar-toc, .related-posts {
  background: #fff; border: 1px solid var(--ml-line); border-radius: var(--ml-radius); padding: 1.25rem 1.5rem;
}
/* Visual differentiation — pink accent on TOC, dark accent on Related Posts */
.sidebar-toc { border-top: 3px solid var(--ml-pink); }
.sidebar-toc-title, .related-posts-title {
  font-family: 'Abel', sans-serif; font-size: 0.74rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ml-mute); margin-bottom: 0.85rem;
}
.sidebar-toc ul { margin: 0; padding-left: 1rem; list-style: disc; }
.sidebar-toc li { margin: 0.4rem 0; font-size: 0.9rem; }
.sidebar-toc a { text-decoration: none; color: #374151; }
.sidebar-toc a:hover { color: var(--ml-pink); }

.related-post-card { display: flex; gap: 0.85rem; text-decoration: none; margin-bottom: 0.85rem; color: inherit; }
.related-post-card:last-child { margin-bottom: 0; }
.related-post-card img { width: 76px; height: 56px; object-fit: cover; border-radius: 8px; flex-shrink: 0; background: var(--ml-paper); }
.related-post-title { font-family: 'Abel', sans-serif; font-size: 0.96rem; font-weight: 400; color: var(--ml-black); line-height: 1.3; }
.related-post-date { font-size: 0.74rem; color: #9a9a9a; margin-top: 0.2rem; }

/* Inline product card (in posts) */
.product-card-inline {
  display: flex; align-items: stretch; max-width: 540px;
  background: #fff; border: 1px solid var(--ml-line); border-radius: var(--ml-radius);
  overflow: hidden; margin: 2rem 0;
  transition: transform var(--ml-trans), box-shadow var(--ml-trans), border-color var(--ml-trans);
}
.product-card-inline:hover { transform: translateY(-2px); box-shadow: var(--ml-shadow-h); border-color: #d9d4cc; }
.product-card-inline a { display: flex; width: 100%; text-decoration: none; color: inherit; }
.product-card-inline img { width: 140px; height: 140px; object-fit: cover; flex-shrink: 0; background: var(--ml-paper); }
.product-card-body { padding: 1rem 1.25rem; display: flex; flex-direction: column; justify-content: center; gap: 0.55rem; }
.product-card-title { font-family: 'Abel', sans-serif; font-size: 1.08rem; color: var(--ml-black); }
.product-card-btn {
  display: inline-block; width: fit-content;
  background: var(--ml-pink); color: white;
  font-family: 'Abel', sans-serif; font-size: 0.78rem; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.4rem 1rem; border-radius: 999px;
}

.toc { display: none; }

/* ── Inline affiliate link ── */
.affiliate-link {
  color: var(--ml-pink); text-decoration: underline; text-underline-offset: 3px; font-weight: 500;
}
.affiliate-link:hover { color: var(--ml-pink-2); }

/* ── YouTube / embed responsive wrapper ── */
.wp-block-embed { margin: 1.75rem 0; }
.wp-block-embed__wrapper {
  position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
  border-radius: 12px;
}
.wp-block-embed__wrapper iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}

/* ── Mobile TOC accordion ── */
.post-toc-mobile {
  display: none;
  background: var(--ml-paper); border: 1px solid var(--ml-line);
  border-radius: var(--ml-radius); margin-bottom: 1.75rem; overflow: hidden;
}
@media (max-width: 1024px) { .post-toc-mobile { display: block; } }
.post-toc-mobile-toggle {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; padding: 0.9rem 1.25rem; cursor: pointer;
  font-family: 'Abel', sans-serif; font-size: 0.74rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ml-mute);
  background: none; border: none; text-align: left;
}
.toc-chevron { transition: transform var(--ml-trans); flex-shrink: 0; }
.toc-chevron.open { transform: rotate(180deg); }
.post-toc-mobile-content { padding: 0 1.25rem 1rem; display: none; }
.post-toc-mobile-content.open { display: block; }
.post-toc-mobile-content ul { margin: 0; padding-left: 1rem; list-style: disc; }
.post-toc-mobile-content li { margin: 0.4rem 0; font-size: 0.9rem; }
.post-toc-mobile-content a { text-decoration: none; color: #374151; }
.post-toc-mobile-content a:hover { color: var(--ml-pink); }

/* ── post-main wrapper (first grid column) ── */
.post-main { min-width: 0; }

/* ── Mid-post products widget (horizontal scroll strip) ── */
.products-widget {
  display: flex; gap: 0.75rem; overflow-x: auto;
  padding: 0.25rem 0 0.75rem; margin: 1.75rem 0;
  scrollbar-width: thin; scrollbar-color: var(--ml-line) transparent;
}
.products-widget::-webkit-scrollbar { height: 4px; }
.products-widget::-webkit-scrollbar-track { background: transparent; }
.products-widget::-webkit-scrollbar-thumb { background: var(--ml-line); border-radius: 9px; }
.products-widget-tile {
  flex-shrink: 0; width: 148px;
  background: #fff; border: 1px solid var(--ml-line); border-radius: var(--ml-radius);
  overflow: hidden; text-decoration: none; color: inherit;
  transition: transform var(--ml-trans), box-shadow var(--ml-trans), border-color var(--ml-trans);
}
.products-widget-tile:hover { transform: translateY(-2px); box-shadow: var(--ml-shadow-h); border-color: #d9d4cc; }
.products-widget-tile img { width: 148px; height: 148px; object-fit: cover; display: block; background: var(--ml-paper); }
.products-widget-tile .tile-body { padding: 0.55rem 0.7rem; }
.products-widget-tile .tile-title { font-family: 'Abel', sans-serif; font-size: 0.85rem; color: var(--ml-black); line-height: 1.3; margin-bottom: 0.25rem; }
.products-widget-tile .tile-cta { font-family: 'Abel', sans-serif; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ml-pink); }

/* ── Sidebar products widget ── */
.sidebar-products {
  background: #fff; border: 1px solid var(--ml-line); border-top: 3px solid var(--ml-black);
  border-radius: var(--ml-radius); padding: 1.25rem 1.5rem;
}
.sidebar-products-title {
  font-family: 'Abel', sans-serif; font-size: 0.74rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ml-mute); margin-bottom: 0.85rem;
}
.sidebar-product-tile {
  display: flex; gap: 0.75rem; text-decoration: none; color: inherit;
  margin-bottom: 0.85rem; align-items: center;
}
.sidebar-product-tile:last-child { margin-bottom: 0; }
.sidebar-product-tile img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex-shrink: 0; background: var(--ml-paper); }
.sidebar-product-tile .sp-title { font-family: 'Abel', sans-serif; font-size: 0.9rem; color: var(--ml-black); line-height: 1.3; }
.sidebar-product-tile .sp-cta { font-size: 0.72rem; color: var(--ml-pink); margin-top: 0.15rem; }

/* ── Post FAQ section ── */
.post-faq {
  margin: 2.5rem 0 1rem;
  border-top: 2px solid var(--ml-line);
  padding-top: 1.75rem;
}
.post-faq-title {
  font-family: 'Abel', sans-serif; font-size: 1.55rem; font-weight: 400;
  letter-spacing: 0.04em; color: var(--ml-black); margin-bottom: 1.25rem;
}
.faq-item {
  padding: 1.1rem 0; border-bottom: 1px solid var(--ml-line);
}
.faq-item:last-child { border-bottom: 0; }
.faq-q {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.97rem; font-weight: 600;
  color: var(--ml-black); line-height: 1.45; margin-bottom: 0.45rem;
}
.faq-q::before {
  content: "Q  ";
  font-family: 'Abel', sans-serif; font-size: 0.8rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ml-pink); margin-right: 0.1em;
}
.faq-a {
  font-size: 0.94rem; color: #4a4a4a; line-height: 1.8;
  padding-left: 1.5rem;
}

/* ── Post about MiyoLash band ── */
.post-about-miyo {
  background: var(--ml-paper);
  border-top: 1px solid var(--ml-line);
  border-bottom: 1px solid var(--ml-line);
  padding: clamp(2rem, 4vw, 3rem) 2rem;
}
.post-about-miyo-inner { max-width: 760px; margin: 0 auto; }
.post-about-miyo-eyebrow {
  font-family: 'Abel', sans-serif; font-size: 0.74rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ml-pink); margin-bottom: 0.7rem;
}
.post-about-miyo-text {
  font-size: 0.98rem; color: var(--ml-mute);
  line-height: 1.8; margin-bottom: 0.55rem;
}
.post-about-miyo-text:last-child { margin-bottom: 0; }
.post-about-miyo-text a {
  color: var(--ml-pink); text-decoration: underline; text-underline-offset: 3px;
}
.post-about-miyo-text a:hover { color: var(--ml-pink-2); }

/* ── Affiliate carousel (mid-post Amazon-style single-product widget) ── */
.affiliate-carousel {
  border: 1px solid var(--ml-line); border-radius: var(--ml-radius);
  overflow: hidden; margin: 2rem 0; background: #fff;
}
/* Image column stretches to match whatever height the body content needs */
.ac-slide {
  display: flex; position: relative;
}
.ac-img {
  width: 180px; flex-shrink: 0; background: var(--ml-paper);
  /* align-self: stretch is the default — fills the row height */
  display: flex; flex-direction: column;
}
.ac-img img { flex: 1; width: 100%; object-fit: cover; display: block; min-height: 0; }
.ac-img-placeholder { flex: 1; background: var(--ml-paper); }
.ac-body {
  flex: 1; min-width: 0;
  padding: 1rem 1.25rem 2.75rem;
  display: flex; flex-direction: column; gap: 0.35rem;
}
.ac-title {
  font-family: 'Abel', sans-serif; font-size: 1.05rem;
  color: var(--ml-black); line-height: 1.3;
}
/* Clamp description to 2 lines so the button always stays visible */
.ac-desc {
  color: var(--ml-mute); font-size: 0.85rem; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ac-stars { display: flex; align-items: center; gap: 0.35rem; font-size: 0.9rem; }
.ac-stars-fill  { color: #E8970A; letter-spacing: 0.04em; }
.ac-stars-empty { color: #d4d4d4; letter-spacing: 0.04em; }
.ac-stars-num   { color: var(--ml-mute); font-size: 0.78rem; }
.ac-purchases   { color: #E8970A; font-size: 0.8rem; }
.ac-cta {
  display: inline-flex; width: fit-content; margin-top: 0.3rem;
  background: var(--ml-black); color: #fff;
  font-family: 'Inter', sans-serif; font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.55rem 1.35rem; border-radius: 999px;
  text-decoration: none; transition: background var(--ml-trans);
}
.ac-cta:hover { background: #2a2a2a; color: #fff; }
.ac-nav {
  position: absolute; bottom: 0.7rem; right: 0.85rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.ac-btn {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid var(--ml-line);
  background: #fff; cursor: pointer;
  font-size: 1.1rem; line-height: 1; color: var(--ml-black);
  transition: background var(--ml-trans), border-color var(--ml-trans);
}
.ac-btn:hover { background: var(--ml-paper); border-color: #ccc; }
.ac-counter { font-size: 0.74rem; color: var(--ml-mute); min-width: 2.5rem; text-align: center; }
@media (max-width: 520px) {
  .ac-slide { flex-direction: column; }
  .ac-img { width: 100%; height: 200px; flex-direction: row; }
  .ac-img img { flex: none; width: 100%; height: 100%; }
}

/* ── Sidebar related posts (dark top accent differentiates from shop/toc) ── */
.sidebar-related-posts {
  background: #fff; border: 1px solid var(--ml-line); border-top: 3px solid var(--ml-black);
  border-radius: var(--ml-radius); padding: 1.25rem 1.5rem;
}

/* ── Post footer banner (between content and FAQ) ── */
.post-footer-banner {
  background: var(--ml-black); border-radius: var(--ml-radius);
  margin: 2.5rem 0 0;
  padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem);
}
.post-footer-banner-inner {
  display: flex; flex-direction: column; gap: 0.85rem;
  max-width: 600px;
}
.post-footer-banner-brand {
  font-family: 'Abel', sans-serif; font-size: 1.5rem; letter-spacing: 0.18em;
  text-transform: uppercase; line-height: 1;
}
.post-footer-banner-brand .miyo { color: #ffffff; }
.post-footer-banner-brand .lash { color: var(--ml-pink); }
.post-footer-banner-tagline {
  font-size: 0.95rem; color: rgba(255,255,255,0.65); line-height: 1.6; margin: 0;
}
.post-footer-banner-actions {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 0.4rem;
}
.post-footer-banner-cta {
  display: inline-flex; align-items: center;
  font-family: 'Abel', sans-serif; font-size: 0.88rem; letter-spacing: 0.12em;
  text-transform: uppercase; text-decoration: none;
  background: #fff; color: var(--ml-black); border: 1px solid #fff;
  padding: 0.55rem 1.4rem; border-radius: 999px;
  transition: background var(--ml-trans), color var(--ml-trans);
}
.post-footer-banner-cta:hover {
  background: #f0f0f0; color: var(--ml-black);
}
.post-footer-banner-social { color: rgba(255,255,255,0.3); font-size: 0.8rem; }

/* ── A11y / motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
:focus-visible { outline: 2px solid var(--ml-pink); outline-offset: 3px; border-radius: 4px; }
