/*
Theme Name: Fyachi Beauty & Style Editorial
Theme URI: https://fyachi.com
Author: Nadia Vance — Fyachi Beauty & Style
Description: Velvet Amethyst & Orchid Glow Cosmetics Bar WordPress Theme for Fyachi.com — Optimized for HB Agency & 4-Page Lookbook Pagination.
Version: 3.4.0
Text Domain: fyachi
*/

:root {
  --brand-primary: #2E1065;
  --brand-primary-dark: #3B0764;
  --brand-accent: #A855F7;
  --brand-accent-pink: #EC4899;
  --brand-accent-light: #F3E8FF;
  --bg: #FAF5FF;
  --surface: #FFFFFF;
  --surface-alt: #F3E8FF;
  --ink: #1E1B4B;
  --ink-soft: #312E81;
  --ink-muted: #6B21A8;
  --plum: #2E1065;
  --plum-dark: #3B0764;
  --rosegold: #EC4899;
  --rosegold-light: #FCE7F3;
  --accent: #A855F7;
  --muted: #6B21A8;
  --pin-red: #E60023;
  --border: #E9D5FF;
  --radius: 26px;
  --shadow: 0 14px 32px rgba(147,51,234,0.10);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: #FAF5FF;
  color: #1E1B4B;
  font-family: 'Mulish', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.78;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .serif {
  font-family: 'Prata', Georgia, serif;
  color: #1E1B4B;
  line-height: 1.22;
}
a { color: inherit; text-decoration: none; transition: all 0.18s ease; }
a:hover { color: #A855F7; }
img { max-width: 100%; height: auto; display: block; }

.topbar {
  background: linear-gradient(90deg, #3B0764 0%, #2E1065 55%, #4C1D95 100%);
  color: #F3E8FF;
  font-size: 12px;
  letter-spacing: 0.05em;
  padding: 8px 20px;
  border-bottom: 1px solid rgba(168, 85, 247, 0.32);
}
.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.topbar-links {
  display: flex;
  align-items: center;
  gap: 16px;
}
.topbar-links a {
  color: #E9D5FF;
  font-size: 11.5px;
  text-transform: uppercase;
  font-weight: 700;
}
.topbar-links a:hover { color: #FFFFFF; }
.pin-top-btn, .pin-btn, .orchid-glow-pill {
  background: linear-gradient(135deg, #A855F7 0%, #EC4899 100%);
  color: #fff !important;
  padding: 5px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 11.5px !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 16px rgba(236, 72, 153, 0.35);
}
.pin-btn svg, .pin-top-btn svg, .btn-pin-img svg, .btn-pin-follow svg {
  width: 15px !important;
  height: 15px !important;
  fill: currentColor;
  flex-shrink: 0;
}
.pin-top-btn:hover, .pin-btn:hover, .orchid-glow-pill:hover { opacity: 0.94; transform: translateY(-1px); }

/* Sleek Dark-Amethyst Glassmorphic Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, rgba(46, 16, 101, 0.95) 0%, rgba(59, 7, 100, 0.95) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(168, 85, 247, 0.4);
  box-shadow: 0 12px 32px rgba(46, 16, 101, 0.28);
}
.header-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.brand-emblem {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  object-fit: cover;
  border: 1.5px solid #A855F7;
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.35);
}
.brand-text-wrap {
  display: flex;
  flex-direction: column;
}
.brand-title {
  font-family: 'Prata', Georgia, serif;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #FAF5FF !important;
  line-height: 1.08;
}
.brand-sub {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #F5D0FE !important;
  margin-top: 3px;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.search-form {
  display: flex;
  align-items: center;
  background: rgba(250, 245, 255, 0.12);
  border: 1px solid rgba(233, 213, 255, 0.32);
  border-radius: 999px;
  padding: 6px 15px;
  width: 260px;
}
.search-form input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 13.5px;
  color: #FAF5FF;
}
.search-form input::placeholder {
  color: #E9D5FF;
}
.search-form button {
  border: none;
  background: transparent;
  cursor: pointer;
  color: #F472B6;
  font-weight: 700;
}
.nav-bar {
  border-top: 1px solid rgba(233, 213, 255, 0.18);
  background: rgba(46, 16, 101, 0.88);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 6px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  overflow-x: auto;
}
.nav-link {
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #F3E8FF;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: #FFFFFF;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.38) 0%, rgba(236, 72, 153, 0.38) 100%);
  border-color: rgba(236, 72, 153, 0.65);
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.28);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 24px 64px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 28px;
  margin-bottom: 44px;
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero-main {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background: #2E1065;
  border: 1px solid #E9D5FF;
  min-height: 475px;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 14px 32px rgba(147,51,234,0.10);
}
.hero-main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
}
.hero-overlay {
  position: relative;
  z-index: 2;
  background: linear-gradient(to top, rgba(46, 16, 101, 0.96) 15%, rgba(59, 7, 100, 0.52) 70%, transparent 100%);
  padding: 38px 34px;
  color: #fff;
  width: 100%;
}
.cat-pill {
  display: inline-block;
  background: linear-gradient(135deg, #A855F7 0%, #EC4899 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.35);
}
.hero-overlay h1 {
  color: #fff;
  font-size: clamp(28px, 3.5vw, 42px);
  margin-bottom: 10px;
}
.hero-overlay p {
  color: #F3E8FF;
  font-size: 15px;
  max-width: 640px;
}
.hero-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.side-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  background: #FFFFFF;
  border: 1px solid #E9D5FF;
  border-radius: 26px;
  padding: 14px;
  align-items: center;
  box-shadow: 0 14px 32px rgba(147,51,234,0.10);
}
.side-card img {
  width: 120px;
  height: 115px;
  object-fit: cover;
  border-radius: 18px;
}
.side-card h3 { font-size: 19px; margin: 4px 0 6px; color: #1E1B4B; }
.meta-line { font-size: 12px; color: var(--ink-muted); }

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 2px solid #A855F7;
  padding-bottom: 10px;
  margin: 36px 0 24px;
}
.sec-head h2 { font-size: 29px; letter-spacing: 0.02em; color: #2E1065; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 28px;
}
/* Ultra-Rounded Glowing Beauty Cards */
.art-card {
  background: #FFFFFF;
  border: 1px solid #E9D5FF;
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 14px 32px rgba(147,51,234,0.10);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.art-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 42px rgba(147,51,234,0.18);
}
.art-card-img {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  background: var(--surface-alt);
}
.art-card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.art-card-cat {
  display: inline-block;
  width: fit-content;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #FFFFFF;
  background: linear-gradient(135deg, #A855F7 0%, #EC4899 100%);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.art-card-title { font-size: 21px; margin-bottom: 8px; line-height: 1.28; color: #1E1B4B; }
.art-card-excerpt { font-size: 14px; color: var(--ink-soft); margin-bottom: 14px; flex: 1; }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 820px) 340px;
  gap: 42px;
  align-items: start;
}
@media (max-width: 1040px) {
  .article-layout { grid-template-columns: 1fr; }
}
.article-main {
  background: #FFFFFF;
  border: 1px solid #E9D5FF;
  border-radius: 26px;
  padding: clamp(22px, 4vw, 44px);
  box-shadow: 0 14px 32px rgba(147,51,234,0.10);
}
.article-title { font-size: clamp(30px, 4vw, 46px); margin: 8px 0 14px; }
.byline-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.byline-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.byline-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--rosegold);
}
.part-badge {
  background: var(--plum);
  color: #f9ebe7;
  padding: 4px 12px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Fiche Technique Concurrentielle ("💄 Nadia’s Beauty Lab & Glam Cheat Sheet") */
.style-spec-card {
  background: linear-gradient(145deg, #fcf9fa, #f6eaef);
  border: 1px solid #e2c8d2;
  border-left: 5px solid var(--plum);
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 26px;
}
.style-spec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #d9b8c4;
}
.style-spec-head h3 {
  font-size: 21px;
  margin: 0;
  color: var(--plum);
}
.style-spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.style-spec-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
}
.style-spec-item span {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--rosegold);
}
.style-spec-item b {
  font-size: 13.5px;
  color: var(--ink);
}
.style-salon-ask {
  background: var(--plum);
  color: #fcf9fa;
  border-radius: 8px;
  padding: 11px 15px;
  font-size: 13.5px;
}
.style-salon-ask strong { color: #f3c6b8; }

.jump-banner {
  background: linear-gradient(135deg, #fdf6f8, #f7e6ec);
  border: 1px solid #dfb9c6;
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.jump-btn {
  background: var(--plum);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13.5px;
}

.dlg-figure {
  position: relative;
  margin: 26px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-alt);
}
.dlg-Lead-img {
  width: 100%;
  max-height: 780px;
  object-fit: cover;
}
.dlg-figure figcaption {
  padding: 11px 16px;
  font-size: 13px;
  color: var(--ink-muted);
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.btn-pin-img, .fig-pin-btn {
  background: var(--pin-red);
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none !important;
}
.btn-pin-img:hover, .fig-pin-btn:hover { opacity: 0.9; }

.dlg-sec-h2 { font-size: 30px; margin: 28px 0 14px; color: var(--plum); }
.dlg-sub-h3 { font-size: 24px; margin: 22px 0 10px; color: var(--ink); }
.article-content p { margin-bottom: 18px; font-size: 17px; color: var(--ink); }
.dlg-callout {
  background: var(--surface-alt);
  border-left: 4px solid var(--rosegold);
  padding: 18px 22px;
  border-radius: 0 10px 10px 0;
  margin: 24px 0;
}
.dlg-callout h3 { font-size: 21px; margin-bottom: 10px; color: var(--plum); }
.dlg-callout ul { padding-left: 20px; }
.dlg-callout li { margin-bottom: 8px; font-size: 15.5px; }

.pagination-box {
  margin: 34px 0 26px;
  padding: 26px;
  background: linear-gradient(145deg, var(--plum), var(--plum-dark));
  color: #fff;
  border-radius: 14px;
  text-align: center;
}
.pagination-box p { color: #f2dce4; font-size: 14px; margin-bottom: 14px; }
.btn-next-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #A855F7 0%, #EC4899 100%);
  color: #fff !important;
  font-weight: 800;
  font-size: 17px;
  padding: 16px 34px;
  border-radius: 99px;
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.page-pills {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.page-pill {
  padding: 7px 15px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255,255,255,0.12);
  color: #f9ebe7 !important;
}
.page-pill.active { background: var(--rosegold); color: #fff !important; }

.author-box {
  margin-top: 30px;
  padding: 22px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 18px;
  align-items: center;
}
.author-box-img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--rosegold);
}
.sidebar-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.sidebar-widget h3 {
  font-size: 22px;
  border-bottom: 2px solid var(--plum);
  padding-bottom: 8px;
  margin-bottom: 16px;
  color: var(--plum);
}
.founder-card {
  text-align: center;
}
.founder-card img {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  border: 2.5px solid var(--rosegold);
}
.btn-pin-follow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 14px;
  padding: 11px 16px;
  border-radius: 99px;
  background: linear-gradient(135deg, #A855F7 0%, #EC4899 100%);
  color: #fff !important;
  font-weight: 700;
  font-size: 13.5px;
}
.site-footer {
  background: var(--plum-dark);
  color: #ebd8df;
  padding: 56px 24px 140px;
  margin-top: 60px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 820px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
.footer-col h4 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 14px;
  letter-spacing: 0.05em;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; font-size: 13.5px; }
.footer-col a { color: #d8bcc7; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: 1280px;
  margin: 36px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: #b4929f;
}

/* === v3.4.0 Screen Reader & Editorial Pagination UX === */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.pin-btn svg { width: 15px !important; height: 15px !important; fill: currentColor; flex-shrink: 0; display: inline-block; vertical-align: middle; }

/* --- Archive / Homepage / Category Pagination UX --- */
.archive-pagination-wrap {
  margin: 46px 0 18px;
  padding: 24px 28px;
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #E9D5FF);
  border-radius: 26px;
  box-shadow: var(--shadow, 0 14px 32px rgba(147,51,234,0.10));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.archive-pagination-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.archive-page-badge {
  background: var(--brand-accent-light, #f5ebd6);
  color: var(--brand-primary, #141210);
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 13px;
  border-radius: 999px;
}
.archive-total-count {
  font-size: 12.5px;
  color: var(--ink-muted, #777);
  font-weight: 600;
}
.navigation.pagination {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
}
.navigation.pagination .nav-links,
.pagination .nav-links,
ul.page-numbers {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}
ul.page-numbers li {
  display: inline-flex;
  list-style: none;
}
.navigation.pagination .page-numbers,
.page-numbers,
a.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border, #E9D5FF);
  background: var(--surface, #FFFFFF);
  color: var(--ink, #1E1B4B);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.18s ease;
  line-height: 1;
}
.navigation.pagination a.page-numbers:hover,
a.page-numbers:hover {
  border-color: var(--brand-accent, #A855F7);
  background: var(--brand-accent-light, #F3E8FF);
  color: var(--brand-primary, #2E1065);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(147, 51, 234, 0.12);
}
.navigation.pagination .page-numbers.current,
span.page-numbers.current,
.page-numbers.current {
  background: linear-gradient(135deg, #2E1065 0%, #A855F7 100%);
  color: #ffffff !important;
  border-color: #2E1065;
  box-shadow: 0 6px 16px rgba(46, 16, 101, 0.24);
  pointer-events: none;
}
.navigation.pagination .page-numbers.dots,
span.page-numbers.dots,
.page-numbers.dots {
  border: none;
  background: transparent;
  min-width: 28px;
  padding: 0 4px;
  color: var(--ink-muted, #6B21A8);
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: none;
}
.navigation.pagination a.prev.page-numbers,
.navigation.pagination a.next.page-numbers,
.page-numbers.prev,
.page-numbers.next {
  padding: 0 20px;
  gap: 8px;
  background: var(--brand-primary, #2E1065);
  color: #ffffff !important;
  border-color: var(--brand-primary, #2E1065);
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(46, 16, 101, 0.16);
}
.navigation.pagination a.prev.page-numbers:hover,
.navigation.pagination a.next.page-numbers:hover,
.page-numbers.prev:hover,
.page-numbers.next:hover {
  background: var(--brand-accent, #A855F7);
  border-color: var(--brand-accent, #A855F7);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(168, 85, 247, 0.24);
}
.navigation.pagination .pag-arrow {
  font-size: 15px;
  line-height: 1;
}

/* --- Enhanced Multi-Page Single Article Pagination UX --- */
.pagination-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 8px;
}
.pagination-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 20px;
}
.pagination-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #A855F7, #EC4899);
  border-radius: 999px;
  transition: width 0.3s ease;
}
.next-page-teaser {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 18px;
  text-align: left;
  color: #ffffff !important;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.next-page-teaser:hover {
  background: rgba(255, 255, 255, 0.13);
  transform: translateY(-2px);
}
.next-page-teaser-img {
  width: 68px;
  height: 68px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.next-page-teaser-kicker {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #F5D0FE;
  margin-bottom: 3px;
}
.next-page-teaser-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.32;
}
.next-page-teaser-sub {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.76);
  margin-top: 2px;
}
.page-pill.done {
  background: rgba(255, 255, 255, 0.16);
  color: #F5D0FE;
  border-color: rgba(255, 255, 255, 0.25);
}
.btn-pin-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #A855F7 0%, #EC4899 100%);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn-pin-secondary:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}
@media (max-width: 980px) {
  .nav-inner { justify-content: flex-start; }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-main, .article-sidebar { min-width: 0; max-width: 100%; }
}
@media (max-width: 640px) {
  .container, .header-main, .topbar-inner, .footer-inner { padding-left: 16px; padding-right: 16px; }
  .topbar-links { flex-wrap: wrap; justify-content: center; gap: 8px 12px; }
  .brand-logo { gap: 10px; max-width: 100%; }
  .brand-emblem { width: 40px; height: 40px; }
  .brand-title { font-size: 1.25rem; }
  .brand-sub { font-size: 0.58rem; letter-spacing: 0.08em; white-space: normal; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .article-grid { grid-template-columns: minmax(0, 1fr); }
  .article-main { padding: 20px 16px; }
  .top-page-bar, .byline-bar, .author-box { flex-wrap: wrap; }
  .author-box { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .archive-pagination-wrap { padding: 18px 14px; }
  .navigation.pagination .page-numbers { min-width: 38px; height: 38px; font-size: 13px; padding: 0 10px; }
  .navigation.pagination a.prev.page-numbers,
  .navigation.pagination a.next.page-numbers { padding: 0 14px; }
  .next-page-teaser { padding: 10px 12px; gap: 12px; }
  .next-page-teaser-img { width: 58px; height: 58px; }
}

/* --- Top Chapter / Multi-Page Switcher Bar on Pages 2..N --- */
.top-page-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 24px;
  background: var(--surface-alt, #F5EBFF);
  border: 1px solid var(--border, #E9D5FF);
  border-left: 4px solid var(--brand-accent, #A855F7);
  border-radius: 10px;
}
.top-page-bar-left,
.top-page-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.top-page-status {
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink, #1E1B4B);
}
.top-page-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #E9D5FF);
  color: var(--ink-soft, #4C1D95);
  text-decoration: none;
}
.top-page-dot.done {
  background: var(--brand-accent-light, #F3E8FF);
  color: var(--brand-primary, #2E1065);
  border-color: var(--brand-accent, #A855F7);
}
.top-page-dot.active {
  background: var(--brand-primary, #2E1065);
  color: #ffffff !important;
  border-color: var(--brand-primary, #2E1065);
  pointer-events: none;
}
.top-page-nav-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #E9D5FF);
  color: var(--ink, #1E1B4B) !important;
  text-decoration: none;
}
.top-page-nav-btn.primary {
  background: var(--brand-primary, #2E1065);
  border-color: var(--brand-primary, #2E1065);
  color: #ffffff !important;
}
.top-page-nav-btn:hover {
  border-color: var(--brand-accent, #A855F7);
  transform: translateY(-1px);
}


