/* =========================================================
   Kayla's Style Stack, hyper-feminine brand theme
   ========================================================= */

:root {
  /* Kayla's Style Stack brand palette */
  --cream:       #FFF8F4;   /* page base, ivory blush */
  --cream-deep:  #FCEAF1;   /* soft blush tint for chips / wells */
  --blush:       #FAD0E0;
  --pink:        #EFA6C2;   /* blush-to-rose midtone */
  --pink-deep:   #E58BAE;   /* = rose, strong accents */
  --rose:        #E58BAE;   /* primary brand rose */
  --rose-deep:   #D9779E;   /* hover / active rose */
  --lavender:    #CDB8EC;   /* wisteria accent */
  --lavender-2:  #B79BDD;   /* deeper wisteria for gradients */
  --mint:        #BFE6D4;   /* mint whisper accent */
  --mulberry:    #5A2A40;   /* deep berry text / reverse panels */

  /* text: deep berry, never pure black */
  --ink:         #5A2A40;
  --ink-soft:    rgba(90, 42, 64, 0.72);   /* darkened for WCAG-AA body text */
  --ink-faint:   rgba(90, 42, 64, 0.55);   /* darkened for AA on secondary text */
  --line:        rgba(90, 42, 64, 0.10);
  --line-2:      rgba(90, 42, 64, 0.06);

  --white:       #ffffff;   /* text on color */
  --card:        #FFFCFB;   /* warm card surface */
  --radius:      26px;
  --radius-sm:   18px;
  --radius-pill: 999px;

  --shadow-soft: 0 18px 40px -24px rgba(90, 42, 64, 0.45);
  --shadow-glow: 0 0 0 1px var(--line), 0 24px 48px -26px rgba(90, 42, 64, 0.42);

  --font-body:   "Quicksand", system-ui, sans-serif;
  --font-head:   "Playfair Display", Georgia, serif;
  --font-script: "Great Vibes", cursive;

  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.65;
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

/* floating sparkle backdrop */
.sparkle-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.9) 0 1.5px, transparent 2px),
    radial-gradient(circle, rgba(255,180,210,0.8) 0 1.5px, transparent 2px);
  background-size: 140px 140px, 220px 220px;
  background-position: 20px 30px, 120px 90px;
  opacity: 0.5;
  animation: drift 22s linear infinite alternate;
}
@keyframes drift {
  from { background-position: 20px 30px, 120px 90px; }
  to   { background-position: 60px 90px, 80px 30px; }
}

a { color: var(--rose); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--pink-deep); }

/* ---------- header ---------- */
.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.6rem 1.6rem 1rem;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 40px;
  height: 40px;
  flex: none;
  display: block;
  filter: drop-shadow(0 6px 12px rgba(90, 42, 64, 0.18));
  transition: transform 0.4s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.06); }
.brand-name {
  font-family: var(--font-script);
  font-size: 2.5rem;
  line-height: 0.9;
  color: var(--mulberry);
}
.site-nav { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 1.3rem; }
.site-nav a {
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0.3rem 0.2rem;
  position: relative;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  border-radius: 2px;
  background: var(--pink);
  transition: width 0.25s var(--ease);
}
.site-nav a:hover { color: var(--rose); }
.site-nav a:hover::after { width: 100%; }

/* ---------- main ---------- */
.site-main {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.5rem 1.6rem 4rem;
}

/* ---------- hero ---------- */
.hero {
  text-align: center;
  padding: 3rem 1rem 2.5rem;
}
.hero-eyebrow {
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 0.8rem;
}
.hero-title {
  font-family: var(--font-script);
  font-size: clamp(3.4rem, 10vw, 6.5rem);
  font-weight: 400;
  margin: 0;
  color: var(--mulberry);
  text-shadow: 0 10px 28px rgba(90, 42, 64, 0.18);
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 0.6rem 0 0;
}

/* ---------- section heads ---------- */
.page-head { text-align: center; margin: 1rem 0 2.4rem; }
.page-head h1, .hero + .feed-section h2 { color: var(--rose); }
.page-head h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0;
}
.page-sub { color: var(--ink-soft); margin: 0.3rem 0 0; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 2.6rem 0 1.2rem;
}
.section-head h2 {
  font-family: var(--font-head);
  font-size: 1.7rem;
  margin: 0;
  color: var(--ink);
}
.see-all { font-weight: 600; font-size: 0.95rem; }

/* ---------- card grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.6rem;
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}
.card-image { display: block; aspect-ratio: 4 / 5; overflow: hidden; }
.card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.card:hover .card-image img { transform: scale(1.05); }
.card-body { padding: 1.1rem 1.3rem 1.4rem; }
.card-body h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  margin: 0.4rem 0 0.3rem;
  line-height: 1.3;
}
.card-body h3 a { color: var(--ink); }
.card-body h3 a:hover { color: var(--rose); }
.card-date { color: var(--ink-faint); font-size: 0.85rem; margin: 0 0 0.5rem; }
.card-excerpt { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

/* whole content card is clickable: stretch the title link over the card
   (product-card is excluded, it has its own "shop ♡" button) */
.outfit-card, .guide-card, .post-card, .fit-card, .topic-card, .poll-card, .progress-card { position: relative; }
.outfit-card .card-body h3 a::after,
.guide-card .card-body h3 a::after,
.post-card .card-body h3 a::after,
.fit-card .card-body h3 a::after,
.topic-card .card-body h3 a::after,
.poll-card .card-body h3 a::after,
.progress-card .card-body h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* ---------- chips & pills ---------- */
.mood-chip {
  display: inline-block;
  background: var(--blush);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
}
.tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 2rem 0 1rem; }
.tag-pill {
  background: var(--cream-deep);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--blush);
  transition: all 0.2s var(--ease);
}
.tag-pill:hover {
  background: var(--pink);
  color: var(--white);
  border-color: var(--pink);
}

/* ---------- entry (detail) ---------- */
.entry {
  background: var(--card);
  max-width: 760px;
  margin: 0 auto;
  padding: 2.6rem clamp(1.4rem, 5vw, 3rem) 2.8rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
}
.entry-head { text-align: center; margin-bottom: 1.6rem; }
.entry-head h1 {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  margin: 0.6rem 0 0.3rem;
  color: var(--ink);
}
.entry-date { color: var(--ink-faint); margin: 0; }
.entry-mood { color: var(--ink-soft); margin: 0.2rem 0 0; font-style: italic; }
.entry-cover {
  margin: 1.6rem 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.entry-cover img { width: 100%; display: block; }

/* ---------- prose ---------- */
.prose { font-size: 1.05rem; color: var(--ink); }
.prose h2, .prose h3 { font-family: var(--font-head); color: var(--rose); }
.prose a { text-decoration: underline; text-decoration-color: var(--blush); }
.prose img { max-width: 100%; border-radius: var(--radius-sm); }
.prose blockquote {
  margin: 1.4rem 0;
  padding: 0.6rem 1.2rem;
  border-left: 4px solid var(--pink);
  background: var(--cream-deep);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-soft);
  font-style: italic;
}
.prose code {
  background: var(--lavender);
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  font-size: 0.9em;
}

/* ---------- photo gallery ---------- */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.6rem 0;
}
.photo { margin: 0; }
.photo img {
  width: 100%;
  border-radius: var(--radius-sm);
  display: block;
  box-shadow: var(--shadow-soft);
}
.photo figcaption {
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.85rem;
  margin-top: 0.4rem;
}

/* ---------- misc ---------- */
.empty-note {
  text-align: center;
  color: var(--ink-soft);
  background: var(--card);
  border: 1px dashed var(--blush);
  border-radius: var(--radius);
  padding: 2.4rem;
}
.back-link { margin-top: 2rem; }
.back-link a { font-weight: 600; }

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--ink-soft);
  padding: 2.4rem 1rem 3rem;
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}
.footer-mark {
  font-family: var(--font-script);
  font-size: 2rem;
  line-height: 1;
  color: var(--rose);
  margin: 0 0 0.3rem;
}
.site-footer p { margin: 0.2rem 0; }
.site-footer .heart { color: var(--rose); }
.footer-sparkle { color: var(--lavender-2); letter-spacing: 0.2em; }

/* ---------- nav auth bits ---------- */
.nav-cta {
  background: var(--rose-deep);
  color: var(--white) !important;
  padding: 0.35rem 0.9rem !important;
  border-radius: var(--radius-pill);
  font-weight: 700;
  white-space: nowrap;
}
.nav-cta:hover { filter: brightness(1.05); }
.logout-form { display: inline; margin: 0; }
.link-btn {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0.3rem 0.2rem;
}
.link-btn:hover { color: var(--rose); }
.link-btn.tiny { font-size: 0.68rem; letter-spacing: 0.1em; color: var(--ink-faint); }

/* ---------- buttons ---------- */
.btn-primary, .btn-secondary, .btn-danger {
  display: inline-block;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-pill);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), filter 0.2s var(--ease);
}
.btn-primary {
  background: var(--rose-deep);
  color: var(--white);
  border: 1px solid transparent;
  box-shadow: var(--shadow-soft);
  margin-top: 0.6rem;
}
.btn-primary:hover { transform: translateY(-2px); color: var(--white); filter: brightness(1.04); }
.btn-secondary {
  background: var(--cream-deep);
  color: var(--ink);
  border: 1px solid var(--blush);
}
.btn-secondary:hover { background: var(--blush); color: var(--ink); }
.btn-danger {
  background: #ffe1e9;
  color: var(--rose);
  border: 1px solid var(--pink);
}
.btn-danger:hover { background: var(--rose); color: var(--white); }
.action-row { display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: center; margin-top: 1rem; }

/* ---------- auth / form cards ---------- */
.auth-card {
  background: var(--card);
  max-width: 440px;
  margin: 2rem auto;
  padding: 2.4rem clamp(1.4rem, 5vw, 2.6rem);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
  text-align: center;
}
.auth-card.wide { max-width: 620px; text-align: left; }
.auth-card h1 {
  font-family: var(--font-head);
  color: var(--rose);
  margin: 0 0 0.3rem;
}
.auth-sub { color: var(--ink-soft); margin: 0 0 1.4rem; }
.auth-alt { margin-top: 1.4rem; color: var(--ink-soft); }

.pretty-form { text-align: left; }
.pretty-form .field { display: block; margin-bottom: 1.1rem; }
.field-label {
  display: block;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.field-help { display: block; color: var(--ink-faint); font-size: 0.82rem; margin-top: 0.3rem; }
.pretty-form input[type="text"],
.pretty-form input[type="password"],
.pretty-form input[type="file"],
.pretty-form input[type="number"],
.pretty-form input[type="email"],
.pretty-form input[type="search"],
.pretty-form input[type="url"],
.pretty-form input:not([type]),
.pretty-form select,
.pretty-form textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid var(--blush);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.pretty-form input:focus,
.pretty-form select:focus,
.pretty-form textarea:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 158, 192, 0.25);
}
.pretty-form ul.errorlist {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
  color: var(--rose);
  font-size: 0.85rem;
}

/* ---------- fit tracker bits ---------- */
.fit-card .mood-chip { margin-right: 0.3rem; }
.mood-chip.fit-good       { background: var(--mint); }
.mood-chip.fit-too_small  { background: #ffe0b8; }
.mood-chip.fit-too_large  { background: #d8e6ff; }
.mood-chip.comfy          { background: var(--blush); }
.fit-notes {
  background: var(--cream-deep);
  border-radius: var(--radius-sm);
  padding: 1rem 1.3rem;
  margin: 1.4rem 0;
}
.fit-notes h3 { margin: 0 0 0.4rem; font-family: var(--font-head); color: var(--rose); }
.stat-line {
  margin: 1.2rem 0 0;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}
.owner-tools { margin-top: 1.8rem; border-top: 1px dashed var(--blush); padding-top: 1.4rem; }
.owner-tools h3 { font-family: var(--font-head); color: var(--ink); }
.photo .link-btn { display: block; margin: 0.2rem auto 0; }

@keyframes heart-beat {
  0%, 100% { transform: scale(1); }
  12%      { transform: scale(1.25); }
  24%      { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 560px) {
  .site-header { justify-content: center; text-align: center; }
  .section-head { flex-direction: column; gap: 0.3rem; }
}

/* ---------- guides, series, product strips ---------- */
.hub-intro { max-width: 640px; margin: 0.8rem auto 0; }
.product-strip { margin-top: 2.4rem; }
.product-strip h3, .series-nav h3 {
  font-family: var(--font-head);
  color: var(--rose);
  margin: 0 0 1rem;
}
.product-card .btn-secondary { margin-top: 0.6rem; }
.series-nav { margin-top: 2rem; border-top: 1px dashed var(--blush); padding-top: 1.2rem; }
.series-nav ol, .series-list { padding-left: 1.1rem; }
.series-nav li.current { font-weight: 700; color: var(--rose); }
.series-list li { margin-bottom: 0.9rem; }
.series-list .card-excerpt { margin: 0.2rem 0 0; }

/* ---------- skip link (a11y) ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--rose);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; color: var(--white); }

/* ---------- footer newsletter ---------- */
.newsletter-form { max-width: 420px; margin: 0 auto 1.6rem; }
.newsletter-label {
  display: block;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.5rem;
}
.newsletter-row { display: flex; gap: 0.5rem; }
.newsletter-row input {
  flex: 1;
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--blush);
  border-radius: var(--radius-pill);
  padding: 0.6rem 1rem;
}
.newsletter-row input:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 158, 192, 0.25);
}
.newsletter-row .btn-primary { margin-top: 0; padding: 0.6rem 1.4rem; }

/* ---------- quick-exit ---------- */
.quick-exit {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--mulberry);
  color: var(--white);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.6rem 1.05rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 24px -8px rgba(90, 42, 64, 0.55);
  opacity: 0.9;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.quick-exit:hover {
  opacity: 1;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -8px rgba(90, 42, 64, 0.6);
}
.quick-exit:focus-visible { outline: 3px solid var(--blush); outline-offset: 2px; }
.quick-exit-icon {
  display: inline-grid;
  place-items: center;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.65rem;
}
@media (max-width: 560px) {
  .quick-exit { right: 12px; bottom: 12px; }
}

/* ---------- measurement calculator ---------- */
.calc-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.calc-row .field { flex: 1; min-width: 140px; }
.calc-result { margin-top: 1.6rem; }
.calc-foot { color: var(--ink-soft); }
.size-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.8rem 0;
  background: var(--card);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.size-table th, .size-table td {
  text-align: left;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--line);
}
.size-table th { color: var(--ink); font-weight: 700; }
.size-table td { color: var(--ink-soft); }
.calc-note { font-size: 0.85rem; color: var(--ink-faint); }

/* ---------- guide layouts (feminization hub) ---------- */
/* Shared: a soft intro lead pulled out of the first paragraph. */
.guide-layout > p:first-of-type {
  font-size: 1.12rem;
  color: var(--ink);
  background: var(--cream-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  box-shadow: var(--shadow-soft);
}

/* CARDS: top-level bullet lists become soft pill cards. */
.layout-cards > ul {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.layout-cards > ul > li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow-soft);
  color: var(--ink-soft);
}
.layout-cards > ul > li strong { color: var(--rose-deep); }

/* STEPS: top-level ordered lists become numbered step badges. */
.layout-steps > ol,
.layout-timeline > ol {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 1.4rem 0;
}
.layout-steps > ol > li {
  counter-increment: step;
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem 1rem 3.4rem;
  margin: 0 0 0.9rem;
  box-shadow: var(--shadow-soft);
  color: var(--ink-soft);
}
.layout-steps > ol > li::before,
.layout-timeline > ol > li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--pink);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.95rem;
}
.layout-steps > ol > li strong { color: var(--rose-deep); }

/* TIMELINE: ordered list as a vertical track with a connecting line. */
.layout-timeline > ol {
  counter-reset: step;
  border-left: 2px solid var(--blush);
  margin-left: 0.85rem;
  padding-left: 1.6rem;
}
.layout-timeline > ol > li {
  counter-increment: step;
  position: relative;
  margin: 0 0 1.2rem;
  color: var(--ink-soft);
}
.layout-timeline > ol > li::before {
  left: -2.5rem;
  top: 0;
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.85rem;
}
.layout-timeline > ol > li strong { color: var(--rose-deep); }

/* honeypot: keep it out of sight and out of the a11y tree */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- pagination ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2.4rem 0 1rem;
}
.pagination .page-count { color: var(--ink-soft); font-size: 0.9rem; }
.btn-secondary.is-disabled { opacity: 0.4; pointer-events: none; }

/* ---------- search ---------- */
.nav-search input {
  font: inherit;
  font-size: 0.85rem;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--blush);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.85rem;
  width: 8.5rem;
  transition: width 0.25s var(--ease), border-color 0.2s var(--ease);
}
.nav-search input:focus { outline: none; border-color: var(--pink); width: 11rem; }
.search-page-form { display: flex; gap: 0.5rem; justify-content: center; margin: 1rem auto 0; max-width: 480px; }
.search-page-form input {
  flex: 1; font: inherit; color: var(--ink); background: var(--card);
  border: 1.5px solid var(--blush); border-radius: var(--radius-pill); padding: 0.6rem 1rem;
}
.search-page-form input:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255,158,192,0.25); }
.search-page-form .btn-primary { margin-top: 0; }

/* ---------- flat page header visual ---------- */
.page-mark { display: flex; justify-content: center; margin-bottom: 0.6rem; }
.page-mark .brand-mark { width: 66px; height: 66px; }
.page-photo {
  margin: 0 auto 1rem;
  max-width: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.page-photo img { width: 100%; display: block; }

/* ---------- footer social ---------- */
.footer-social { display: flex; gap: 1.1rem; justify-content: center; flex-wrap: wrap; margin: 0.4rem 0; }
.footer-social a {
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.footer-social a:hover { color: var(--rose); }

/* footer social: icon glyphs */
.footer-social a { display: inline-flex; align-items: center; color: var(--ink-soft); padding: 0.2rem; }
.footer-social a:hover { color: var(--rose); transform: translateY(-1px); }
.social-icon { width: 20px; height: 20px; fill: currentColor; display: block; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- landing: hero cta, explore cards, cta band ---------- */
.hero-cta { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.4rem; align-items: center; }
.hero-cta .btn-primary { margin-top: 0; }

.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.explore-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.3rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.explore-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); color: var(--ink); }
.explore-emoji { font-size: 1.6rem; }
.explore-name { font-family: var(--font-head); font-size: 1.15rem; color: var(--rose); }
.explore-sub { font-size: 0.85rem; color: var(--ink-soft); }

.cta-band {
  margin-top: 3rem;
  text-align: center;
  background: var(--cream-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.4rem 1.4rem;
}
.cta-band h2 { font-family: var(--font-head); color: var(--rose); margin: 0 0 0.3rem; }
.cta-band p { color: var(--ink-soft); margin: 0 0 1.2rem; }
.cta-band .newsletter-form { margin: 0 auto; }

/* ---------- breadcrumbs + related ---------- */
.breadcrumbs {
  max-width: 760px;
  margin: 0 auto 1rem;
  font-size: 0.8rem;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs a:hover { color: var(--rose); }
.breadcrumbs .bc-sep { margin: 0 0.4rem; color: var(--ink-faint); }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }
.related { margin-top: 2rem; border-top: 1px dashed var(--blush); padding-top: 1.4rem; }
.related h3 { font-family: var(--font-head); color: var(--rose); margin: 0 0 1rem; }

/* ---------- sizing calculator modes ---------- */
.mode-toggle { display: flex; gap: 0.4rem; justify-content: center; margin-bottom: 1.4rem; }
.mode-toggle a {
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
}
.mode-toggle a.is-active { background: var(--rose); color: var(--white); border-color: var(--rose); }
.save-size { margin-top: 1rem; }
.size-table small { color: var(--ink-faint); font-weight: 500; }

/* ---------- all-my-sizes grid ---------- */
.all-sizes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.2rem;
  margin-top: 1.6rem;
}
.size-block { background: var(--cream-deep); border-radius: var(--radius-sm); padding: 1rem 1.1rem; }
.size-block h3 { font-family: var(--font-head); color: var(--rose); margin: 0 0 0.5rem; font-size: 1.1rem; }
.size-block .size-table { background: var(--card); margin: 0; }

/* ---------- sizing-tool callout on guides ---------- */
.sizing-callout {
  background: var(--cream-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem;
  margin: 1.8rem 0;
}
.sizing-callout-head {
  font-family: var(--font-head);
  color: var(--rose);
  margin: 0 0 0.7rem;
  font-size: 1.05rem;
}
.sizing-callout-links { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.sizing-callout-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.95rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}
.sizing-callout-link:hover { transform: translateY(-2px); color: var(--rose); }

/* ---------- homepage feature strip (toolkit benefits) ---------- */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  margin: 0.5rem 0 2.4rem;
}
.feature-tile {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-sm);
  background: var(--cream-deep);
  border: 1px solid var(--line);
  color: var(--ink);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.feature-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  color: var(--ink);
}
.feature-emoji { font-size: 1.5rem; line-height: 1; }
.feature-name { font-family: var(--font-head); font-size: 1.05rem; color: var(--rose); }
.feature-sub { font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- keyboard focus visibility (a11y) ---------- */
/* Links and buttons get a clear focus ring on keyboard nav only (not mouse
   clicks), so the soft aesthetic is unchanged for pointer users. Form inputs
   already define their own visible focus glow above. */
a:focus-visible,
button:focus-visible,
.link-btn:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.explore-card:focus-visible,
.feature-tile:focus-visible,
.sizing-callout-link:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- studio dashboard ---------- */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin: 0 0 1.4rem;
}
.dash-grid .size-block { margin: 0; }
.dash-grid .size-table th { font-weight: 600; word-break: break-word; }
.dash-section { font-family: var(--font-head); font-size: 1.4rem; margin: 1.5rem 0 0.8rem; }

/* ---------- related posts + shareable result link ---------- */
.related { margin-top: 3rem; }
.related h2 { font-family: var(--font-head); color: var(--ink); font-size: 1.4rem; margin: 0 0 1rem; }
.share-link { margin-top: 1.4rem; }
.share-label { display: block; font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 0.35rem; }
.share-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ink-soft);
  background: var(--cream-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.5rem 0.95rem;
}
.share-input:focus { outline: 2px solid var(--rose); outline-offset: 1px; }

/* ---------- affiliate disclosure (FTC) ---------- */
.affiliate-disclosure {
  margin: 1rem 0 0;
  padding-top: 0.7rem;
  border-top: 1px dashed var(--line);
  font-size: 0.8rem;
  color: var(--ink-faint);
  font-style: italic;
}

/* ---------- polls / "battle" ---------- */
.poll { max-width: 920px; margin: 0 auto; }
.poll-head { text-align: center; margin-bottom: 1.4rem; }
.poll-title { font-family: var(--font-head); font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 0 0 0.4rem; }
.poll-question { color: var(--ink-soft); font-size: 1.05rem; margin: 0; }
.poll-intro { margin: 0 auto 1.8rem; max-width: 680px; text-align: center; }

.poll-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 1.5rem 0; }
@media (max-width: 640px) { .poll-grid { grid-template-columns: 1fr; } }

.poll-option { display: block; cursor: pointer; }
.poll-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.poll-option-card {
  display: flex; flex-direction: column; gap: 0.35rem; height: 100%;
  background: var(--card); border: 2px solid var(--line);
  border-radius: var(--radius-sm); padding: 1.1rem 1.2rem;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.poll-option:hover .poll-option-card { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.poll-option input:checked + .poll-option-card { border-color: var(--rose); box-shadow: var(--shadow-glow); }
.poll-option input:focus-visible + .poll-option-card { outline: 3px solid var(--lavender); outline-offset: 2px; }
.poll-option-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-sm); margin-bottom: 0.4rem; }
.poll-option-img img { width: 100%; height: 100%; object-fit: cover; }
.poll-option-label { font-family: var(--font-head); font-size: 1.2rem; }
.poll-meta { font-size: 0.9rem; color: var(--ink-soft); }
.poll-meta b { color: var(--ink); }

.poll-actions { display: flex; align-items: center; justify-content: center; gap: 1.2rem; flex-wrap: wrap; margin-top: 0.5rem; }
.poll-peek { font-size: 0.85rem; color: var(--ink-faint); }

.poll-results { display: flex; flex-direction: column; gap: 1rem; margin: 1.5rem 0; }
.poll-result { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.9rem 1.1rem; }
.poll-result.is-leader { border-color: var(--rose); background: var(--cream-deep); }
.poll-result-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.45rem; gap: 0.6rem; }
.poll-result-label { font-family: var(--font-head); font-size: 1.1rem; }
.poll-result-pct { font-weight: 700; color: var(--rose-deep); }
.poll-bar { background: var(--line-2); border-radius: var(--radius-pill); height: 12px; overflow: hidden; }
.poll-bar-fill { display: block; height: 100%; background: var(--rose); border-radius: var(--radius-pill); transition: width 0.6s var(--ease); }
.poll-result.is-leader .poll-bar-fill { background: var(--rose-deep); }
.poll-result-count { display: block; margin-top: 0.35rem; font-size: 0.8rem; color: var(--ink-faint); }
.poll-total { text-align: center; color: var(--ink-soft); font-weight: 600; }

.poll-verdict { background: var(--cream-deep); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin: 1.5rem 0; }
.poll-verdict h2 { font-family: var(--font-head); margin: 0 0 0.4rem; text-transform: lowercase; }
.poll-cta { text-align: center; margin: 1.4rem 0 0.6rem; }
.poll-note { text-align: center; color: var(--ink-faint); font-size: 0.9rem; }

/* ---------- progress tracker ---------- */
.progress-chart-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; margin: 1.5rem 0; }
.progress-delta { text-align: center; font-family: var(--font-head); font-size: 1.2rem; color: var(--rose-deep); margin: 0 0 0.6rem; }
.progress-chart { width: 100%; height: auto; display: block; }
.progress-line { fill: none; stroke: var(--rose); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.progress-dot { fill: var(--rose-deep); stroke: var(--blush); stroke-width: 2; }
.progress-axis { font-family: var(--font-body); font-size: 12px; fill: var(--ink-faint); }
.progress-axis-dates { display: flex; justify-content: space-between; color: var(--ink-faint); font-size: 0.8rem; margin: 0.3rem 0.2rem 0; }

/* ---------- grouped dropdown nav ---------- */
.nav-group { position: relative; display: inline-flex; align-items: center; }
.nav-caret { font-size: 0.7em; opacity: 0.65; }
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 9.5rem;
  padding: 0.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
  z-index: 30;
}
.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown a { display: block; padding: 0.4rem 0.6rem; border-radius: 12px; white-space: nowrap; }
.nav-dropdown a::after { display: none; }   /* no underline animation inside the menu */
.nav-dropdown a:hover { background: var(--cream-deep); color: var(--rose-deep); }
.nav-dropdown-right { left: auto; right: 0; }
.nav-dropdown .logout-form { margin: 0; }
.nav-dropdown .logout-form .link-btn { padding: 0.4rem 0.6rem; }
/* active section: keep the underline accent lit */
.site-nav a.is-current::after,
.nav-group.is-current > .nav-group-label::after { width: 100%; }
.space-logout { text-align: center; margin-top: 1.6rem; }

/* ---------- mobile nav (hamburger + accordion) ---------- */
/* Desktop: the toggle button + per-group caret buttons are hidden; the bar and
   its hover dropdowns behave exactly as before. */
.nav-toggle { display: none; }
.nav-caret-btn { display: none; }

@media (max-width: 768px) {
  /* header becomes a row: brand left, hamburger right */
  .site-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    text-align: left;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 10px;
    background: none;
    border: none;
    cursor: pointer;
  }
  .nav-toggle-bar {
    display: block;
    height: 2px;
    width: 100%;
    border-radius: 2px;
    background: var(--rose);
    transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
  }

  /* collapsed by default; opened via JS */
  .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    margin-top: 0.6rem;
  }
  .site-nav.is-open { display: flex; }

  /* every row gets a comfortable touch target */
  .site-nav > a,
  .nav-group-label,
  .nav-search,
  .logout-form .link-btn {
    padding: 0.7rem 0.4rem;
    font-size: 0.82rem;
  }
  .site-nav a::after { display: none; }   /* drop the underline animation in the stack */

  /* group as an accordion: label on the left, caret button toggling on the right */
  .nav-group {
    flex-direction: column;
    align-items: stretch;
    position: relative;
  }
  .nav-group-label { flex: 1; }
  .nav-group .nav-caret { display: none; }   /* hide the in-link caret on mobile */
  .nav-caret-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    color: var(--ink-soft);
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s var(--ease);
  }
  .nav-group.is-expanded > .nav-caret-btn { transform: rotate(180deg); }

  /* submenu becomes static + indented, collapsed unless the group is expanded */
  .nav-dropdown,
  .nav-dropdown-right {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: none;
    min-width: 0;
    padding: 0 0 0.3rem 1rem;
  }
  .nav-group.is-expanded > .nav-dropdown { display: flex; }
  /* hover/focus must NOT open it on touch — only the is-expanded class does */
  .nav-group:hover .nav-dropdown,
  .nav-group:focus-within .nav-dropdown { display: none; }
  .nav-group.is-expanded:hover .nav-dropdown,
  .nav-group.is-expanded:focus-within .nav-dropdown { display: flex; }

  /* search fills the row */
  .nav-search { width: 100%; }
  .nav-search input { width: 100%; }
  .nav-search input:focus { width: 100%; }

  .nav-cta { display: inline-block; text-align: center; margin-top: 0.3rem; }
}

/* ---------- shop ---------- */
.nav-cart { white-space: nowrap; }
.add-to-cart { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; margin: 1.5rem 0; }
.add-to-cart select, .add-to-cart input[type="number"] {
  font: inherit; color: var(--ink); background: var(--card);
  border: 1.5px solid var(--blush); border-radius: var(--radius-pill);
  padding: 0.4rem 0.85rem;
}
.add-to-cart .qty-field input { width: 5rem; }

.cart-table { display: flex; flex-direction: column; gap: 0.6rem; margin: 1.5rem 0; }
.cart-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.8rem 1rem; }
.cart-item { display: flex; flex-direction: column; gap: 0.15rem; flex: 1 1 12rem; }
.cart-variant { font-size: 0.85rem; color: var(--ink-soft); }
.cart-unit { font-size: 0.8rem; color: var(--ink-faint); }
.cart-qty { display: flex; align-items: center; gap: 0.4rem; }
.cart-qty input { width: 4rem; font: inherit; border: 1.5px solid var(--blush); border-radius: var(--radius-pill); padding: 0.3rem 0.6rem; }
.cart-line-total { font-weight: 700; min-width: 4.5rem; text-align: right; }
.cart-summary { max-width: 22rem; margin: 1.4rem 0 0 auto; background: var(--cream-deep); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; }
.cart-summary p { display: flex; justify-content: space-between; margin: 0.3rem 0; }
.cart-total { font-size: 1.1rem; border-top: 1px solid var(--line); padding-top: 0.5rem; margin-top: 0.5rem; }
.cart-summary .btn-primary { width: 100%; margin-top: 0.8rem; }
.cart-note { font-size: 0.78rem; color: var(--ink-faint); text-align: center; margin-top: 0.6rem; }

.order-summary { max-width: 26rem; margin: 1.5rem auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; }
.order-row { display: flex; justify-content: space-between; gap: 1rem; margin: 0.35rem 0; }
.order-total { font-weight: 700; border-top: 1px solid var(--line); padding-top: 0.5rem; margin-top: 0.5rem; }
.order-note { text-align: center; color: var(--ink-soft); }

/* ---------- manage (back office) ---------- */
.manage-table { display: flex; flex-direction: column; gap: 0.5rem; margin: 1.4rem 0; }
.manage-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.7rem 1rem; }
.manage-main { display: flex; flex-direction: column; gap: 0.15rem; flex: 1 1 14rem; }
.manage-meta { font-size: 0.82rem; color: var(--ink-soft); }
.manage-total { font-weight: 700; }
.tag-pill.is-active { background: var(--rose-deep); color: var(--white); }

.manage-cols { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1.2rem; margin: 1.2rem 0; }
@media (max-width: 720px) { .manage-cols { grid-template-columns: 1fr; } }

.variant-rows { display: flex; flex-direction: column; gap: 0.8rem; margin: 0.6rem 0 1.2rem; }
.variant-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); gap: 0.6rem; background: var(--cream-deep); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.8rem; }
.vfield { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.85rem; }
.vfield .field-label { font-size: 0.72rem; }
.vfield input, .vfield select { font: inherit; padding: 0.3rem 0.5rem; border: 1.5px solid var(--blush); border-radius: 10px; }

.fulfill-item { border-top: 1px solid var(--line); padding: 0.8rem 0; }
.fulfill-head { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.cj-note { font-size: 0.85rem; color: var(--ink-soft); background: var(--cream-deep); border-radius: 10px; padding: 0.4rem 0.6rem; margin: 0.4rem 0; }
.cj-note code { background: var(--blush); border-radius: 6px; padding: 0 0.3rem; }
.shipped-note { font-size: 0.85rem; color: #3a8f6f; }
.track-form { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; margin-top: 0.4rem; }
.track-form input { font: inherit; padding: 0.35rem 0.6rem; border: 1.5px solid var(--blush); border-radius: var(--radius-pill); }
.status-form { margin-top: 1rem; }
