/* ============================================================
   HORA Astro Hub — library.css
   Original design + image overrides + numbered TOC + emphasis fix
   ============================================================ */

:root {
  --hora-purple: #7B5CE5;
  --hora-purple-2: #9b59f0;
  --hora-purple-deep: #7C3AED;
  --hora-purple-light: #A78BFA;
  --hora-purple-soft: #EDE7FE;
  --hora-purple-bg: #F8F5FF;
  --hora-pink: #FF85D3;
  --hora-pink-soft: #ffb6e9;
  --hora-pink-bg: #FFF0F9;
  --hora-ink: #1A1530;
  --hora-ink-2: #2D2549;
  --hora-muted: #6B6388;
  --hora-muted-2: #9C95B5;
  --hora-line: #E8E2F5;
  --hora-line-soft: #F0EBFA;
  --hora-bg: #FBFAFF;
  --hora-white: #FFFFFF;
}

.hora-hub *, .hora-hub *::before, .hora-hub *::after { box-sizing: border-box; }

.hora-hub {
  background: var(--hora-bg);
  color: var(--hora-ink);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.hora-hub a { color: inherit; text-decoration: none; }


/* ============================================================
   LIBRARY HEADER + FOOTER
   ============================================================ */

/* HEADER */
.hora-library-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--hora-line);
  transition: background 0.3s, border-color 0.3s;
}
.hora-library-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}



.hora-library-header .hora-library-logo,
header.hora-library-header a.hora-library-logo {
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important;
  transition: opacity 0.2s !important;
  line-height: 0 !important;
  max-width: 100px !important;
  height: 40px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}
.hora-library-header .hora-library-logo img,
header.hora-library-header a.hora-library-logo img,
.hora-library-header img {
  height: 28px !important;
  max-height: 28px !important;
  width: auto !important;
  max-width: 100px !important;
  display: block !important;
  object-fit: contain !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}
.hora-library-header .hora-library-logo:hover { opacity: 0.7 !important; }



.hora-library-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  justify-content: center;
}
.hora-library-nav li { position: relative; }
.hora-library-nav a,
.hora-library-nav .hora-nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--hora-muted);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 100px;
  transition: all 0.2s;
}
.hora-library-nav a:hover,
.hora-library-nav .hora-nav-trigger:hover {
  color: var(--hora-ink);
  background: var(--hora-purple-bg);
}
.hora-library-nav li.active > a,
.hora-library-nav li.active > .hora-nav-trigger {
  color: var(--hora-purple-deep);
  background: var(--hora-purple-soft);
  font-weight: 600;
}

/* Dropdown */
.hora-nav-dropdown {
  position: absolute !important;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: var(--hora-white);
  border: 1px solid var(--hora-line);
  border-radius: 14px;
  padding: 10px;
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  box-shadow: 0 20px 50px rgba(20, 16, 31, 0.1);
  display: block !important;
  flex-direction: column !important;
  gap: 0 !important;
}
.hora-library-nav li.has-dropdown:hover .hora-nav-dropdown,
.hora-library-nav li.has-dropdown:focus-within .hora-nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.hora-nav-dropdown li {
  display: block;
  margin: 0 !important;
}
.hora-nav-dropdown a {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px !important;
  font-size: 14px;
  color: var(--hora-ink);
  font-weight: 500;
  border-radius: 8px;
  width: 100%;
}
.hora-nav-dropdown a:hover {
  background: var(--hora-purple-soft);
  color: var(--hora-purple-deep);
}
.hora-nav-dropdown .count {
  font-size: 11px;
  color: var(--hora-muted-2);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.hora-nav-dropdown a:hover .count { color: var(--hora-purple); }

/* CTA + mobile toggle */
.hora-library-header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hora-library-cta-btn,
.hora-library-header a.hora-library-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px !important;
  background: var(--hora-ink) !important;
  color: var(--hora-white) !important;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 100px !important;
  transition: background 0.2s !important;
}
.hora-library-cta-btn:hover {
  background: var(--hora-purple-deep) !important;
}

.hora-library-mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 36px;
  height: 36px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}
.hora-library-mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--hora-ink);
  border-radius: 2px;
  transition: all 0.2s;
}

/* Mobile menu */
.hora-library-mobile-menu {
  display: none;
  padding: 16px 32px 24px;
  background: var(--hora-white);
  border-top: 1px solid var(--hora-line);
}
.hora-library-mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.hora-library-mobile-menu a {
  display: block;
  padding: 12px 0;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--hora-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--hora-line-soft);
}
.hora-library-mobile-menu a.mobile-sub {
  padding-left: 16px;
  font-size: 14px;
  color: var(--hora-muted);
}
.hora-library-mobile-menu .mobile-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hora-muted);
  padding: 18px 0 6px;
}
.hora-library-mobile-menu .mobile-divider {
  height: 1px;
  background: var(--hora-line);
  margin: 16px 0;
}
.hora-library-mobile-menu .mobile-cta {
  background: var(--hora-ink);
  color: var(--hora-white) !important;
  text-align: center;
  border-radius: 100px;
  margin-top: 12px;
  padding: 14px;
  border: none;
}
.hora-library-header.mobile-open .hora-library-mobile-menu { display: block; }
.hora-library-header.mobile-open .hora-library-mobile-toggle span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hora-library-header.mobile-open .hora-library-mobile-toggle span:nth-child(2) { opacity: 0; }
.hora-library-header.mobile-open .hora-library-mobile-toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* FOOTER */
.hora-library-footer {
  background: var(--hora-ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 32px 32px;
  margin-top: 0;
}
.hora-library-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.hora-library-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.hora-library-footer-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: 0.04em;
  color: var(--hora-white);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 16px;
}
.hora-library-footer-tag {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  margin: 0 0 20px;
}
.hora-library-footer-method {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}
.hora-library-footer-title {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hora-white);
  margin-bottom: 18px;
}
.hora-library-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.hora-library-footer-col li { margin-bottom: 10px; }
.hora-library-footer-col a {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s;
}
.hora-library-footer-col a:hover { color: var(--hora-white); }
.hora-library-footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 32px;
}
.hora-library-footer-bottom p {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

/* ============ HEADER/FOOTER RESPONSIVE ============ */
@media (max-width: 900px) {
  .hora-library-header-inner { padding: 14px 20px; grid-template-columns: auto auto; }
  .hora-library-nav { display: none; }
  .hora-library-mobile-toggle { display: inline-flex; }
  .hora-library-cta-btn { display: none; }
  .hora-library-footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; padding-bottom: 40px; }
  .hora-library-footer-brand { grid-column: 1 / -1; }
  .hora-library-footer { padding: 56px 20px 28px; }
  .hora-library-footer-bottom { flex-direction: column; gap: 8px; padding-top: 24px; }
}
@media (max-width: 480px) {
  .hora-library-footer-grid { grid-template-columns: 1fr; gap: 32px; }
}



/* ============ BREADCRUMBS ============ */
.hora-crumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--hora-muted);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
  flex-wrap: wrap;
}
.hora-crumbs a:hover { color: var(--hora-purple-deep); }
.hora-crumbs .sep { color: var(--hora-muted-2); }
.hora-crumbs .current { color: var(--hora-ink); }

/* ============ ENTRY HERO ============ */
.hora-entry-hero {
  background: linear-gradient(180deg, var(--hora-white) 0%, var(--hora-bg) 100%);
  border-bottom: 1px solid var(--hora-line);
  padding: 48px 32px 56px;
  position: relative;
  overflow: hidden;
}
.hora-entry-hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255, 133, 211, 0.1) 0%, transparent 70%);
  pointer-events: none;
}
.hora-entry-hero::after {
  content: '';
  position: absolute;
  top: 0; left: -50px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hora-entry-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}
.hora-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hora-purple-deep);
  background: var(--hora-purple-soft);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.hora-entry-hero h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: clamp(40px, 5.5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  max-width: 900px;
  color: var(--hora-ink);
}
.hora-entry-hero h1 em {
  font-style: italic;
  color: var(--hora-purple-deep);
}
.hora-entry-hero p.overview {
  font-size: 19px;
  line-height: 1.6;
  color: var(--hora-muted);
  max-width: 760px;
  font-weight: 400;
}
.hora-entry-hero p.overview strong {
  color: var(--hora-ink);
  font-weight: 600;
}
.hora-meta-row {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  align-items: center;
  flex-wrap: wrap;
}

/* Share button — explicit reset, no all:unset (causes browser conflicts) */
button.hora-share-btn,
.hora-hub button.hora-share-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  padding: 8px 16px !important;
  background: #FFFFFF !important;
  border: 1px solid #E8E2F5 !important;
  border-radius: 100px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  line-height: 1 !important;
  color: #6B6388 !important;
  cursor: pointer !important;
  font-weight: 500 !important;
  height: auto !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  box-shadow: none !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  margin: 0 !important;
  outline: none !important;
  transition: all 0.2s !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
button.hora-share-btn svg,
.hora-hub button.hora-share-btn svg {
  width: 14px !important;
  height: 14px !important;
  flex-shrink: 0 !important;
  stroke: #7C3AED !important;
  fill: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
button.hora-share-btn span,
.hora-hub button.hora-share-btn span {
  display: inline-block !important;
  white-space: nowrap !important;
}
button.hora-share-btn:hover,
.hora-hub button.hora-share-btn:hover {
  border-color: #7B5CE5 !important;
  background: #F8F5FF !important;
  color: #7C3AED !important;
}
button.hora-share-btn.copied,
.hora-hub button.hora-share-btn.copied {
  background: #EDE7FE !important;
  color: #7C3AED !important;
  border-color: #7B5CE5 !important;
}


.hora-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--hora-white);
  border: 1px solid var(--hora-line);
  border-radius: 100px;
  font-size: 13px;
  color: var(--hora-muted);
}
.hora-pill strong { color: var(--hora-ink); font-weight: 500; }

/* ============ ENTRY MAIN LAYOUT ============ */
.hora-entry-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 32px 80px;
  display: grid;
  grid-template-columns: 240px 1fr 260px;
  gap: 56px;
}

.hora-entry-nav {
  position: sticky;
  top: 88px;
  align-self: start;
}
.hora-toc-wrap {
  position: sticky;
  top: 88px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hora-toc {
  position: static;
}

.hora-sb-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hora-muted);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hora-line);
}

.hora-sb-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hora-sb-list li { margin: 0; }
.hora-sb-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  font-size: 14px;
  color: var(--hora-muted);
  border-radius: 10px;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.hora-sb-list a:hover {
  background: var(--hora-purple-bg);
  color: var(--hora-ink);
}
.hora-sb-list a.active {
  background: var(--hora-purple-soft);
  color: var(--hora-purple-deep);
  font-weight: 500;
  border-color: var(--hora-purple-light);
}

/* ============ ARTICLE ============ */
.hora-article {
  max-width: 760px;
  width: 100%;
}
.hora-article h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 34px;
  letter-spacing: -0.01em;
  margin: 56px 0 20px;
  line-height: 1.15;
  scroll-margin-top: 100px;
  color: var(--hora-ink);
}
.hora-article h2:first-child { margin-top: 0; }
.hora-article h2 em {
  font-style: italic;
  color: var(--hora-purple-deep);
}
.hora-article h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 24px;
  margin: 36px 0 14px;
  color: var(--hora-ink);
}
.hora-article p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--hora-ink-2);
  margin-bottom: 22px;
}
.hora-article p strong { color: var(--hora-ink); font-weight: 600; }

/* Purple italics — catches both <em> and <i> tags from Gutenberg */
.hora-article p em,
.hora-article p i,
.hora-article em,
.hora-article i {
  font-style: italic;
  color: var(--hora-purple-deep);
}

.hora-article ul, .hora-article ol {
  margin: 0 0 22px 24px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--hora-ink-2);
}
.hora-article li { margin-bottom: 8px; }
.hora-article blockquote {
  margin: 40px 0;
  padding: 32px 36px;
  background: linear-gradient(135deg, #F8F5FF 0%, #F0E8FE 100%);
  border-left: 3px solid var(--hora-purple);
  border-radius: 4px 16px 16px 4px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.45;
  color: var(--hora-ink);
  font-weight: 400;
}
/* Pullquote blocks use same styling as blockquote */
.hora-article .wp-block-pullquote,
.hora-article .wp-block-quote {
  margin: 40px 0;
  padding: 32px 36px;
  background: linear-gradient(135deg, #F8F5FF 0%, #F0E8FE 100%);
  border-left: 3px solid var(--hora-purple);
  border-radius: 4px 16px 16px 4px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.45;
  color: var(--hora-ink);
  font-weight: 400;
}
.hora-article .wp-block-pullquote p,
.hora-article .wp-block-quote p {
  margin: 0;
  font-size: 22px;
  line-height: 1.45;
  color: var(--hora-ink);
  font-style: italic;
}
.hora-article .wp-block-pullquote cite,
.hora-article .wp-block-quote cite {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-size: 14px;
  font-weight: 500;
  color: var(--hora-purple-deep);
  letter-spacing: 0.05em;
}
.hora-article blockquote p { font-size: 22px; color: var(--hora-ink); margin: 0; }

/* ============ TOC RIGHT SIDEBAR — numbered ============ */
.hora-toc ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  counter-reset: hora-toc;
}
.hora-toc li {
  margin: 0;
  counter-increment: hora-toc;
}
.hora-toc a {
  display: flex;
  gap: 12px;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--hora-muted);
  border-left: 2px solid var(--hora-line);
  transition: all 0.2s;
}
.hora-toc a::before {
  content: counter(hora-toc, decimal-leading-zero);
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--hora-purple);
  letter-spacing: 0.05em;
}
.hora-toc a:hover {
  color: var(--hora-ink);
  border-left-color: var(--hora-purple-light);
  background: var(--hora-purple-bg);
}
.hora-toc a.active {
  color: var(--hora-purple-deep);
  border-left-color: var(--hora-purple);
  font-weight: 500;
  background: var(--hora-purple-bg);
}


/* ============ READING PROGRESS SIDEBAR CARD ============ */
.hora-reading-progress {
  padding: 22px 22px 20px;
  background: linear-gradient(135deg, var(--hora-purple-bg), var(--hora-pink-bg));
  border: 1px solid var(--hora-line-soft);
  border-radius: 14px;
}
.hora-reading-progress-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hora-purple-deep);
  margin-bottom: 14px;
}
.hora-reading-progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 12px;
}
.hora-reading-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--hora-purple-deep), var(--hora-pink));
  border-radius: 100px;
  transition: width 0.2s ease-out;
}
.hora-reading-progress-counter {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--hora-muted);
  font-weight: 500;
}
.hora-reading-progress-counter #hora-rp-current {
  color: var(--hora-ink);
  font-weight: 600;
}

@media (max-width: 1100px) {
  .hora-toc-wrap { position: static; display: none; }
}

/* ============ PREV/NEXT PAGER ============ */
.hora-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--hora-line);
}
.hora-pager-card {
  background: var(--hora-white);
  border: 1px solid var(--hora-line);
  border-radius: 16px;
  padding: 22px 26px;
  cursor: pointer;
  transition: all 0.25s;
  display: block;
}
.hora-pager-card:hover {
  border-color: var(--hora-purple);
  background: var(--hora-purple-bg);
  transform: translateY(-2px);
}
.hora-pager-card.next { text-align: right; }
.hora-pager-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--hora-purple-deep);
  margin-bottom: 6px;
}
.hora-pager-title {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-weight: 500;
  color: var(--hora-ink);
}

/* ============ RELATED ============ */
.hora-related {
  background: var(--hora-white);
  border-top: 1px solid var(--hora-line);
  padding: 64px 32px 80px;
}
.hora-related-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.hora-related-inner h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 28px;
  margin-bottom: 28px;
  color: var(--hora-ink);
}
.hora-related-inner h3 em { font-style: italic; color: var(--hora-purple-deep); }
.hora-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ============ ENTRY CARDS — with image override ============ */
/* ============ ENTRY CARDS — with image override + decorative bloom ============ */
.hora-entry-card {
  background: var(--hora-white);
  border: 1px solid var(--hora-line);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s;
  display: block;
  text-decoration: none;
  color: inherit;
}
.hora-entry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(123, 92, 229, 0.14);
  border-color: var(--hora-purple-light);
}

/* The visual area — 16:9 cinematic ratio, soft gradient, decorative bloom */
.hora-entry-visual {
  aspect-ratio: 16 / 9;
  background: #EDE7FE; /* fallback */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hora-entry-visual::after {
  content: '';
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
  pointer-events: none;
}



/* If a Featured Image is uploaded, it fills the whole visual area */
.hora-entry-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Glyph fallback (Roman numeral, planet symbol, etc.) */
.hora-entry-visual .glyph {
  position: relative;
  z-index: 1;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 88px;
  color: var(--hora-purple-deep);
  opacity: 0.5;
  letter-spacing: 0.04em;
  line-height: 1;
}

/* ===== Card visual variety — cycles through 6 gradients (I, J, K, L, D, A) ===== */

/* I — Two-bloom wash on near-white */
.hora-entry-card:nth-child(6n+1) .hora-entry-visual {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(255, 133, 211, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(123, 92, 229, 0.15) 0%, transparent 50%),
    #F8F5FF;
}

/* J — Three-stop subtle */
.hora-entry-card:nth-child(6n+2) .hora-entry-visual {
  background: linear-gradient(135deg, #EDE7FE 0%, #F5F0FE 50%, #FAE8F4 100%);
}

/* K — Corner light from top-left */
.hora-entry-card:nth-child(6n+3) .hora-entry-visual {
  background:
    radial-gradient(circle at 0% 0%, rgba(167, 139, 250, 0.35) 0%, transparent 50%),
    linear-gradient(135deg, #F0E8FE 0%, #E8DEFB 100%);
}

/* L — Flat lavender with sculpted highlight */
.hora-entry-card:nth-child(6n+4) .hora-entry-visual {
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.6) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(167, 139, 250, 0.4) 0%, transparent 50%),
    #EDE7FE;
}

/* D — Sunrise wash, lighter at top to deeper at bottom */
.hora-entry-card:nth-child(6n+5) .hora-entry-visual {
  background:
    radial-gradient(ellipse at 50% 100%, rgba(167, 139, 250, 0.5) 0%, transparent 70%),
    linear-gradient(180deg, #F5F0FE 0%, #DDD0FB 100%);
}

/* A — Bloom on lavender (your signature, deeper) */
.hora-entry-card:nth-child(6n+6) .hora-entry-visual {
  background:
    radial-gradient(ellipse at 30% 30%, rgba(167, 139, 250, 0.45) 0%, transparent 60%),
    linear-gradient(135deg, #DDD0FB 0%, #B8A3F5 100%);
}
.hora-entry-card:nth-child(6n+6) .hora-entry-visual .glyph {
  color: #4A2E9E;
}

/* Card body */
.hora-entry-body {
  padding: 22px 24px 26px;
}
.hora-entry-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hora-purple-deep);
  background: var(--hora-purple-soft);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.hora-entry-card h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  color: var(--hora-ink);
}
.hora-entry-card .ex {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--hora-muted);
  line-height: 1.55;
  margin: 0;
  font-weight: 400;
}

/* Keyword pills under the tagline */
.hora-entry-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.hora-keyword {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--hora-muted);
  background: var(--hora-bg);
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.02em;
  border: 1px solid var(--hora-line-soft);
}
.hora-entry-card:hover .hora-keyword {
  background: var(--hora-white);
  border-color: var(--hora-line);
}

/* ============ CATEGORY HERO ============ */
.hora-cat-hero {
  background: var(--hora-white);
  border-bottom: 1px solid var(--hora-line);
  padding: 60px 32px 50px;
}
.hora-cat-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.hora-cat-hero h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: clamp(40px, 5.5vw, 64px);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1;
  color: var(--hora-ink);
}
.hora-cat-hero h1 em {
  font-style: italic;
  color: var(--hora-purple-deep);
}
.hora-cat-hero p {
  font-size: 19px;
  line-height: 1.55;
  color: var(--hora-muted);
  max-width: 720px;
  font-weight: 400;
}

/* ============ CATEGORY LAYOUT ============ */
.hora-cat-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 32px 80px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
}
.hora-cat-sidebar {
  position: sticky;
  top: 88px;
  align-self: start;
}
.hora-cat-content h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 28px;
  margin-bottom: 8px;
  color: var(--hora-ink);
}
.hora-cat-content .sub {
  color: var(--hora-muted);
  margin-bottom: 32px;
  font-size: 15px;
}
.hora-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ============ HUB HERO ============ */

/* ============ HUB HERO ============ */
.hora-hub-hero {
  background:
    radial-gradient(ellipse 1100px 500px at 90% -10%, rgba(255, 133, 211, 0.30) 0%, transparent 60%),
    radial-gradient(ellipse 900px 450px at 10% -5%, rgba(123, 92, 229, 0.28) 0%, transparent 60%),
    radial-gradient(ellipse 700px 350px at 50% 0%, rgba(167, 139, 250, 0.12) 0%, transparent 70%),
    var(--hora-white);
  padding: 96px 32px 80px;
  position: relative;
  overflow: hidden;
  border-bottom: none;
}
.hora-hub-hero-inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.hora-hub-eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--hora-purple-deep);
  margin-bottom: 36px;
  padding: 7px 18px;
  background: var(--hora-purple-soft);
  border-radius: 100px;
}
.hora-hub-hero h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
  color: var(--hora-ink);
}
.hora-hub-hero h1 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--hora-purple-deep), var(--hora-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hora-hub-hero p.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--hora-muted);
  max-width: 620px;
  margin: 0 auto 44px;
  font-weight: 400;
}

/* ============ HUB SEARCH BAR ============ */
.hora-hub-search {
  display: flex;
  align-items: center;
  max-width: 560px;
  margin: 0 auto 56px;
  background: var(--hora-white);
  border: 1px solid var(--hora-line);
  border-radius: 100px;
  padding: 6px 6px 6px 20px;
  box-shadow: 0 10px 30px rgba(123, 92, 229, 0.08);
  transition: all 0.25s;
}
.hora-hub-search:focus-within {
  border-color: var(--hora-purple);
  box-shadow: 0 12px 36px rgba(123, 92, 229, 0.18);
}
.hora-hub-search-icon {
  display: flex;
  align-items: center;
  color: var(--hora-muted);
  flex-shrink: 0;
  margin-right: 12px;
}
.hora-hub-search input[type="search"] {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--hora-ink);
  padding: 14px 0;
  width: 100%;
}
.hora-hub-search input[type="search"]::placeholder {
  color: var(--hora-muted);
}
.hora-hub-search button,
.hora-hub button.hora-hub-search button {
  background: var(--hora-purple-deep) !important;
  color: var(--hora-white) !important;
  border: none !important;
  border-radius: 100px !important;
  width: 44px !important;
  height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
}
.hora-hub-search button:hover {
  background: var(--hora-purple) !important;
}

/* ============ HUB STATS ============ */
.hora-hub-stats {
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}
.hora-stat { text-align: center; }
.hora-stat-num {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 36px;
  line-height: 1;
  color: var(--hora-purple-deep);
  margin-bottom: 8px;
  font-weight: 400;
}
.hora-stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hora-muted);
}

/* ============ HUB SECTIONS ============ */
.hora-hub-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 96px 32px;
  position: relative;
}
.hora-hub-section::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(180deg, var(--hora-bg) 0%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}
.hora-section-header { margin-bottom: 48px; }
.hora-section-header-split {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
}
.hora-section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: clamp(36px, 4.5vw, 52px);
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--hora-ink);
  line-height: 1.05;
}
.hora-section-title em {
  font-style: italic;
  color: var(--hora-purple-deep);
}
.hora-section-aside {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--hora-muted);
  max-width: 280px;
  text-align: right;
  margin: 0;
  line-height: 1.5;
}

/* ============ HUB CATEGORY GRID ============ */
.hora-cat-grid-hub {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.hora-cat-card {
  background: var(--hora-white);
  border: 1px solid var(--hora-line);
  border-radius: 18px;
  padding: 28px 28px 24px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s;
  position: relative;
  overflow: hidden;
  min-height: 240px;
}

/* Gradient bar at top of card */
.hora-cat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--hora-purple-deep), var(--hora-pink));
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 0.3s, transform 0.3s;
}
.hora-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(123, 92, 229, 0.12);
  border-color: var(--hora-purple-light);
}
.hora-cat-card:hover::before {
  opacity: 1;
  transform: translateY(0);
}

/* Icon — animates on hover */
.hora-cat-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--hora-purple-soft);
  color: var(--hora-purple-deep);
  border-radius: 12px;
  margin-bottom: 28px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.3s,
              color 0.3s,
              box-shadow 0.3s;
}
.hora-cat-card-icon svg {
  width: 22px;
  height: 22px;
  transition: stroke-width 0.3s;
}
.hora-cat-card:nth-child(3n+2) .hora-cat-card-icon {
  background: var(--hora-pink-bg);
  color: var(--hora-pink);
}

/* Hover state — icon tilts and saturates */
.hora-cat-card:hover .hora-cat-card-icon {
  transform: rotate(-6deg) scale(1.05);
  background: linear-gradient(135deg, var(--hora-purple-deep), var(--hora-purple));
  color: var(--hora-white);
  box-shadow: 0 10px 24px rgba(123, 92, 229, 0.3);
}
.hora-cat-card:nth-child(3n+2):hover .hora-cat-card-icon {
  background: linear-gradient(135deg, var(--hora-pink), #FF5BC2);
  color: var(--hora-white);
  box-shadow: 0 10px 24px rgba(255, 133, 211, 0.35);
}
.hora-cat-card:hover .hora-cat-card-icon svg {
  stroke-width: 1.75;
}


/* ============ CURATED PATHS ============ */
.hora-hub-paths {
  background: var(--hora-bg);
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  border-top: 1px solid var(--hora-line);
  border-bottom: 1px solid var(--hora-line);
}
.hora-hub-paths .hora-section-header,
.hora-hub-paths .hora-paths-grid,
.hora-hub-paths .hora-paths-note {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
}
.hora-paths-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.hora-path-card {
  background: var(--hora-white);
  border: 1px solid var(--hora-line);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  transition: all 0.3s;
}
.hora-path-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(123, 92, 229, 0.1);
  border-color: var(--hora-purple-light);
}
.hora-path-card.featured {
  background: linear-gradient(135deg, #1A1530 0%, #2D2549 100%);
  border-color: transparent;
  position: relative;
  overflow: hidden;
}
.hora-path-card.featured::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 92, 229, 0.4) 0%, transparent 70%);
  pointer-events: none;
}
.hora-path-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--hora-purple-soft);
  color: var(--hora-purple-deep);
  border-radius: 14px;
}
.hora-path-card.featured .hora-path-icon {
  background: rgba(255, 255, 255, 0.1);
  color: var(--hora-pink);
}
.hora-path-icon svg { width: 26px; height: 26px; }
.hora-path-body {
  flex: 1;
  position: relative;
  z-index: 1;
}
.hora-path-body h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 8px;
  color: var(--hora-ink);
  letter-spacing: -0.01em;
}
.hora-path-card.featured .hora-path-body h3 { color: var(--hora-white); }
.hora-path-body p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--hora-muted);
  margin: 0 0 16px;
}
.hora-path-card.featured .hora-path-body p { color: rgba(255, 255, 255, 0.7); }
.hora-path-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--hora-purple-deep);
}
.hora-path-card.featured .hora-path-meta { color: var(--hora-pink); }
.hora-path-meta .arrow {
  margin-left: auto;
  transition: transform 0.25s;
}
.hora-path-card:hover .hora-path-meta .arrow { transform: translateX(4px); }

.hora-paths-note {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--hora-muted);
  text-align: center;
  margin: 32px auto 0;
  font-style: italic;
}

/* ============ HUB FOOTER NOTE ============ */
.hora-hub-footer {
  text-align: center;
  padding: 72px 32px 88px;
}
.hora-hub-footer p {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--hora-muted-2);
  margin: 4px 0;
}
.hora-hub-footer p:last-child {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--hora-muted);
  margin-top: 16px;
}

/* ============ HUB RESPONSIVE ============ */
@media (max-width: 1100px) {
  .hora-cat-grid-hub { grid-template-columns: repeat(2, 1fr); }
  .hora-paths-grid { grid-template-columns: 1fr; }
  .hora-section-header-split {
    grid-template-columns: 1fr;
  }
  .hora-section-aside { text-align: left; max-width: none; }
  .hora-hub-stats { gap: 32px; }
}
@media (max-width: 640px) {
  .hora-hub-hero { padding: 64px 18px 56px; }
  .hora-hub-section { padding: 64px 18px; }
  .hora-cat-grid-hub { grid-template-columns: 1fr; }
  .hora-hub-stats { gap: 24px; }
  .hora-stat-num { font-size: 28px; }
  .hora-path-card { flex-direction: column; gap: 16px; padding: 24px; }
  .hora-hub-footer { padding: 56px 18px 64px; }
}


/* ============ CATEGORY HERO META ============ */
.hora-cat-meta {
  margin-top: 24px;
  display: flex;
  gap: 24px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--hora-muted);
  letter-spacing: 0.02em;
}
.hora-cat-meta strong {
  color: var(--hora-ink);
  font-weight: 600;
}

/* ============ CATEGORY SIDEBAR BLOCKS ============ */
.hora-cat-sidebar .hora-sb-block + .hora-sb-block {
  margin-top: 36px;
}
.hora-cat-sidebar .hora-sb-list .count {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--hora-muted-2);
  font-variant-numeric: tabular-nums;
}
.hora-cat-sidebar .hora-sb-list a.active .count {
  color: var(--hora-purple);
}

/* ============ EMPTY STATE ============ */
.hora-empty-state {
  padding: 80px 32px;
  text-align: center;
}
.hora-empty-state h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 28px;
  color: var(--hora-ink);
  margin-bottom: 12px;
}
.hora-empty-state p {
  color: var(--hora-muted);
  font-size: 16px;
}

/* ============ PAGINATION ============ */
.hora-pagination {
  margin-top: 56px;
  display: flex;
  justify-content: center;
}
.hora-pagination ul {
  display: flex;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.hora-pagination li { margin: 0; }
.hora-pagination a,
.hora-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--hora-line);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--hora-muted);
  text-decoration: none;
  transition: all 0.2s;
}
.hora-pagination a:hover {
  border-color: var(--hora-purple);
  color: var(--hora-purple-deep);
  background: var(--hora-purple-bg);
}
.hora-pagination span.current {
  background: var(--hora-purple-deep);
  border-color: var(--hora-purple-deep);
  color: var(--hora-white);
  font-weight: 600;
}


/* ============ SEARCH RESULTS PAGE ============ */
.hora-search-hero {
  background:
    radial-gradient(ellipse 1100px 500px at 90% -10%, rgba(255, 133, 211, 0.20) 0%, transparent 60%),
    radial-gradient(ellipse 900px 450px at 10% -5%, rgba(123, 92, 229, 0.18) 0%, transparent 60%),
    var(--hora-white);
  padding: 72px 32px 56px;
  border-bottom: 1px solid var(--hora-line);
}
.hora-search-hero-inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.hora-search-hero h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 16px 0 12px;
  color: var(--hora-ink);
}
.hora-search-hero h1 em {
  font-style: italic;
  color: var(--hora-purple-deep);
}
.hora-search-count {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--hora-muted);
  margin-bottom: 32px;
}
.hora-search-hero .hora-crumbs {
  justify-content: center;
}
.hora-search-again {
  margin: 0 auto;
}

.hora-search-results {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 32px 96px;
}

.hora-search-empty {
  padding: 64px 32px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.hora-search-empty h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 32px;
  margin-bottom: 12px;
  color: var(--hora-ink);
}
.hora-search-empty h2 em {
  font-style: italic;
  color: var(--hora-purple-deep);
}
.hora-search-empty p {
  color: var(--hora-muted);
  font-size: 16px;
  margin-bottom: 32px;
}
.hora-search-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.hora-search-suggestion {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: var(--hora-white);
  border: 1px solid var(--hora-line);
  border-radius: 100px;
  font-size: 13px;
  color: var(--hora-ink);
  text-decoration: none;
  transition: all 0.2s;
}
.hora-search-suggestion:hover {
  border-color: var(--hora-purple);
  background: var(--hora-purple-bg);
  color: var(--hora-purple-deep);
}



/* ============ FAQ SECTION ============ */
.hora-faq {
  margin-top: 80px;
  padding-top: 56px;
  border-top: 1px solid var(--hora-line);
}
.hora-faq-heading {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--hora-ink);
  margin: 0 0 32px;
}
.hora-faq-heading em {
  font-style: italic;
  color: var(--hora-purple-deep);
}

.hora-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hora-faq-item {
  border: 1px solid var(--hora-line);
  border-radius: 14px;
  background: var(--hora-white);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.hora-faq-item:hover {
  border-color: var(--hora-purple-soft);
}
.hora-faq-item:has(.hora-faq-question[aria-expanded="true"]) {
  border-color: var(--hora-purple);
  box-shadow: 0 4px 20px rgba(123, 92, 229, 0.08);
}

.hora-faq-question,
button.hora-faq-question,
.hora-hub button.hora-faq-question {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  padding: 20px 24px !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  cursor: pointer !important;
  text-align: left !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: var(--hora-ink) !important;
  line-height: 1.45 !important;
  gap: 16px !important;
  transition: color 0.2s !important;
  box-shadow: none !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
.hora-faq-question:hover,
button.hora-faq-question:hover {
  background: var(--hora-purple-bg) !important;
  color: var(--hora-purple-deep) !important;
}
.hora-faq-question[aria-expanded="true"],
button.hora-faq-question[aria-expanded="true"] {
  background: var(--hora-purple-soft) !important;
  color: var(--hora-purple-deep) !important;
}


.hora-faq-question:hover { color: var(--hora-purple-deep); }
.hora-faq-question[aria-expanded="true"] { color: var(--hora-purple-deep); }
.hora-faq-q-text { flex: 1; }

.hora-faq-icon {
  flex-shrink: 0;
  color: var(--hora-muted);
  transition: transform 0.25s, color 0.2s;
}
.hora-faq-question[aria-expanded="true"] .hora-faq-icon {
  transform: rotate(180deg);
  color: var(--hora-purple);
}

.hora-faq-answer {
  padding: 0 24px 22px;
  animation: hora-faq-fade-in 0.25s ease-out;
}
.hora-faq-answer p {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--hora-muted);
  margin: 0;
}




@keyframes hora-faq-fade-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .hora-faq { margin-top: 56px; padding-top: 40px; }
  .hora-faq-heading { font-size: 26px; margin-bottom: 24px; }
  .hora-faq-question { padding: 16px 18px; font-size: 15px; }
  .hora-faq-answer { padding: 0 18px 18px; }
  .hora-faq-answer p { font-size: 14px; }
}


@media (max-width: 640px) {
  .hora-search-hero { padding: 48px 20px 40px; }
  .hora-search-results { padding: 40px 20px 60px; }
}



/* === FAQ accordion text wrapping fix === */

/* Allow FAQ questions to wrap onto multiple lines */
.library-entry .hora-faq-question,
.library-entry .hora-faq summary,
.library-entry details summary {
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
  line-height: 1.4;
}

/* Make sure the FAQ container doesn't clip text */
.library-entry .hora-faq,
.library-entry .hora-faq-item,
.library-entry details {
  overflow: visible;
}

/* FAQ answer text should also wrap cleanly */
.library-entry .hora-faq-answer,
.library-entry details > div,
.library-entry details > p {
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  line-height: 1.6;
}




/* ============ TABLES IN LIBRARY ENTRIES ============ */
.hora-article .wp-block-table,
.hora-article figure.wp-block-table {
  margin: 40px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.hora-article table,
.hora-article .wp-block-table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--hora-ink-2);
  background: var(--hora-white);
  border: 1px solid var(--hora-line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(123, 92, 229, 0.04);
}

/* First row of any table = automatically styled as a header */
.hora-article table tr:first-child,
.hora-article .wp-block-table table tr:first-child,
.hora-article thead tr,
.hora-article .wp-block-table thead tr {
  background: linear-gradient(90deg, var(--hora-purple), var(--hora-purple-light)) !important;
}
.hora-article table tr:first-child td,
.hora-article table tr:first-child th,
.hora-article .wp-block-table tr:first-child td,
.hora-article .wp-block-table tr:first-child th,
.hora-article thead th,
.hora-article .wp-block-table thead th {
  padding: 16px 20px;
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-weight: 600 !important;
  font-size: 13px;
  color: var(--hora-white) !important;
  letter-spacing: 0.02em;
  border: none;
  vertical-align: middle;
}

/* Body cells — applies to all rows after the first */
.hora-article tbody td,
.hora-article .wp-block-table tbody td,
.hora-article table tr:not(:first-child) td {
  padding: 16px 20px;
  vertical-align: top;
  border: none;
  border-bottom: 1px solid var(--hora-line-soft);
  color: var(--hora-ink-2);
  font-size: 14px;
  line-height: 1.6;
}
.hora-article tbody tr:last-child td,
.hora-article .wp-block-table tbody tr:last-child td {
  border-bottom: none;
}

/* Alternating row backgrounds — skipping the first (header) row */
.hora-article table tr:nth-child(odd):not(:first-child),
.hora-article .wp-block-table tr:nth-child(odd):not(:first-child) {
  background: var(--hora-bg);
}
.hora-article table tr:nth-child(even):not(:first-child),
.hora-article .wp-block-table tr:nth-child(even):not(:first-child) {
  background: var(--hora-white);
}

/* First column emphasis (often the row label, like a zodiac sign) */
.hora-article table tr:not(:first-child) td:first-child,
.hora-article .wp-block-table table tr:not(:first-child) td:first-child {
  font-weight: 600;
  color: var(--hora-ink);
}

/* Hide empty rows — rows where all cells are empty */
.hora-article table tr:has(td:empty:first-child:nth-last-child(1)),
.hora-article .wp-block-table tr:has(td:empty:first-child:nth-last-child(1)) {
  display: none;
}
.hora-article table tr:has(td:empty:first-child + td:empty:last-child),
.hora-article .wp-block-table tr:has(td:empty:first-child + td:empty:last-child) {
  display: none;
}
.hora-article table tr:has(td:empty:first-child + td:empty + td:empty:last-child),
.hora-article .wp-block-table tr:has(td:empty:first-child + td:empty + td:empty:last-child) {
  display: none;
}

/* ============ ZODIAC GLYPH HELPER ============ */
.hora-zodiac,
.hora-article span.hora-zodiac,
.hora-article span.zodiac {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--hora-purple-deep);
  font-weight: 600;
}

/* ============ PILL HELPER ============ */
.hora-article .hora-pill-tag,
.hora-article span.hora-pill-tag {
  display: inline-block;
  padding: 4px 12px;
  margin: 2px 4px 2px 0;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 100px;
  background: var(--hora-purple-soft);
  color: var(--hora-purple-deep);
  border: 1px solid transparent;
  line-height: 1.4;
}
.hora-article .hora-pill-tag.avoidant { background: #E0EFFF; color: #1E5BBF; }
.hora-article .hora-pill-tag.anxious { background: #FFE9DC; color: #C75A1F; }
.hora-article .hora-pill-tag.secure { background: #DAF5E2; color: #2A8B49; }
.hora-article .hora-pill-tag.disorganized { background: #FCDDDD; color: #B5363C; }
.hora-article .hora-pill-tag.purple { background: var(--hora-purple-soft); color: var(--hora-purple-deep); }
.hora-article .hora-pill-tag.pink { background: var(--hora-pink-bg); color: #C13D8E; }
.hora-article .hora-pill-tag.grey { background: var(--hora-line-soft); color: var(--hora-muted); }

.hora-article td .hora-pill-tag {
  white-space: nowrap;
  margin-bottom: 4px;
}

/* ============ TABLE RESPONSIVE ============ */
@media (max-width: 640px) {
  .hora-article table,
  .hora-article .wp-block-table table {
    font-size: 13px;
  }
  .hora-article table tr:first-child td,
  .hora-article table tr:first-child th,
  .hora-article tbody td,
  .hora-article .wp-block-table tr:first-child td,
  .hora-article .wp-block-table tr:first-child th,
  .hora-article .wp-block-table tbody td {
    padding: 12px 14px;
  }
  .hora-article .hora-pill-tag {
    font-size: 10px;
    padding: 3px 10px;
  }
}



/* === Library table improvements === */

/* Table uses full width and intelligent column sizing */
.library-entry table {
  width: 100%;
  table-layout: auto;
}

/* Never break words mid-word */
.library-entry table td,
.library-entry table th {
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
}

/* First column gets a minimum width so sign/category names fit on one line */
.library-entry table td:first-child,
.library-entry table th:first-child {
  min-width: 110px;
  white-space: nowrap;
}

/* On mobile, allow horizontal scroll and reduce padding */
@media (max-width: 768px) {
  .library-entry .wp-block-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .library-entry table {
    min-width: 600px;
  }

  .library-entry table td,
  .library-entry table th {
    font-size: 14px;
    padding: 8px 8px;
  }

  /* On mobile, lift the nowrap constraint so very long sign names can wrap if needed */
  .library-entry table td:first-child,
  .library-entry table th:first-child {
    white-space: normal;
    min-width: 90px;
  }
}


/* === BREADCRUMB === */

.library-breadcrumb {
    margin: 24px 0 16px 0;
    font-size: 14px;
    color: #6B6577;
}

.library-breadcrumb a {
    color: #6B6577;
    text-decoration: none;
}

.library-breadcrumb a:hover {
    color: #7B5CE5;
}

.breadcrumb-sep {
    margin: 0 8px;
    color: #C9C3D6;
}

.breadcrumb-current {
    color: #14101F;
    font-weight: 600;
}

/* === RESPONSIVE === */

@media (max-width: 768px) {
    .subcategory-grid {
        grid-template-columns: 1fr;
    }

    .subcategory-card-visual {
        height: 100px;
    }

    .subcategory-count {
        font-size: 48px;
    }
}

/* === Sidebar with expandable subcategories === */

/* Remove default details/summary styling */
.hora-sb-details {
  list-style: none;
}
.hora-sb-details > summary {
  list-style: none;
}
.hora-sb-details > summary::-webkit-details-marker {
  display: none;
}
.hora-sb-details > summary::marker {
  display: none;
  content: '';
}

/* The clickable summary row */
.hora-sb-summary {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.2s;
}
.hora-sb-summary:hover {
  background: var(--hora-purple-bg);
}
.hora-sb-summary.active {
  background: var(--hora-purple-soft);
}

/* Category name link inside summary */
.hora-sb-summary-link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  font-size: 14px;
  color: var(--hora-muted);
  text-decoration: none;
  border-radius: 10px;
  transition: color 0.2s;
}
.hora-sb-summary:hover .hora-sb-summary-link {
  color: var(--hora-ink);
}
.hora-sb-summary.active .hora-sb-summary-link {
  color: var(--hora-purple-deep);
  font-weight: 500;
}

/* Chevron icon */
.hora-sb-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 32px;
  color: var(--hora-muted-2);
  flex-shrink: 0;
  transition: transform 0.25s ease, color 0.2s;
}
.hora-sb-details[open] .hora-sb-chevron {
  transform: rotate(180deg);
  color: var(--hora-purple);
}
.hora-sb-summary:hover .hora-sb-chevron {
  color: var(--hora-purple-deep);
}

/* Subcategory list */
.hora-sb-sublist {
  list-style: none;
  margin: 6px 0 8px 0;
  padding: 0 0 0 14px;
  border-left: 2px solid var(--hora-line);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hora-sb-sublist li {
  margin: 0;
  list-style: none;
}
.hora-sb-sublist a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--hora-muted);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s;
}
.hora-sb-sublist a:hover {
  background: var(--hora-purple-bg);
  color: var(--hora-ink);
}
.hora-sb-sublist a.active {
  background: var(--hora-purple-soft);
  color: var(--hora-purple-deep);
  font-weight: 500;
}
.hora-sb-sublist a .count {
  font-size: 11px;
  color: var(--hora-muted-2);
}
.hora-sb-sublist a.active .count {
  color: var(--hora-purple);
}

/* Smooth open/close animation */
.hora-sb-details[open] .hora-sb-sublist {
  animation: hora-slide-down 0.2s ease-out;
}
@keyframes hora-slide-down {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   AGGRESSIVE OVERRIDE — ensures library archive styling
   applies even if CSS scope/specificity fails elsewhere
   ============================================================ */

body.archive.tax-library_category,
body.archive.tax-library_category .hora-hub,
.hora-library-page {
  background: #FBFAFF;
  font-family: 'Inter', sans-serif;
  color: #1A1530;
}

body.archive.tax-library_category .hora-cat-hero,
.hora-library-page .hora-cat-hero {
  background: #FFFFFF;
  border-bottom: 1px solid #E8E2F5;
  padding: 60px 32px 50px;
}

body.archive.tax-library_category .hora-cat-hero-inner,
.hora-library-page .hora-cat-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
}

body.archive.tax-library_category .hora-cat-hero h1,
.hora-library-page .hora-cat-hero h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: clamp(40px, 5.5vw, 64px);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1;
  color: #1A1530;
}

body.archive.tax-library_category .hora-cat-hero h1 em,
.hora-library-page .hora-cat-hero h1 em {
  font-style: italic;
  color: #7C3AED;
}

body.archive.tax-library_category .hora-cat-hero p,
.hora-library-page .hora-cat-hero p {
  font-size: 19px;
  line-height: 1.55;
  color: #6B6388;
  max-width: 720px;
}

body.archive.tax-library_category .hora-crumbs,
.hora-library-page .hora-crumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #6B6388;
  margin-bottom: 24px;
}

body.archive.tax-library_category .hora-crumbs a,
.hora-library-page .hora-crumbs a {
  color: #6B6388;
  text-decoration: none;
}

body.archive.tax-library_category .hora-crumbs .sep,
.hora-library-page .hora-crumbs .sep {
  color: #9C95B5;
}

body.archive.tax-library_category .hora-crumbs .current,
.hora-library-page .hora-crumbs .current {
  color: #1A1530;
}

body.archive.tax-library_category .hora-cat-main,
.hora-library-page .hora-cat-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 32px 80px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
}

body.archive.tax-library_category .hora-cat-sidebar,
.hora-library-page .hora-cat-sidebar {
  position: sticky;
  top: 88px;
  align-self: start;
}

body.archive.tax-library_category .hora-sb-title,
.hora-library-page .hora-sb-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6B6388;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #E8E2F5;
}

body.archive.tax-library_category .hora-sb-list,
.hora-library-page .hora-sb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

body.archive.tax-library_category .hora-sb-list li,
.hora-library-page .hora-sb-list li {
  margin: 0;
  list-style: none;
}

body.archive.tax-library_category .hora-sb-list a,
.hora-library-page .hora-sb-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  font-size: 14px;
  color: #6B6388;
  border-radius: 10px;
  transition: all 0.2s;
  text-decoration: none;
}

body.archive.tax-library_category .hora-sb-list a:hover,
.hora-library-page .hora-sb-list a:hover {
  background: #F8F5FF;
  color: #1A1530;
}

body.archive.tax-library_category .hora-sb-list a.active,
.hora-library-page .hora-sb-list a.active {
  background: #EDE7FE;
  color: #7C3AED;
  font-weight: 500;
}

body.archive.tax-library_category .hora-sb-sublist,
.hora-library-page .hora-sb-sublist {
  list-style: none;
  margin: 6px 0 8px 0;
  padding: 0 0 0 14px;
  border-left: 2px solid #E8E2F5;
}

body.archive.tax-library_category .hora-sb-sublist li,
.hora-library-page .hora-sb-sublist li {
  list-style: none;
  margin: 0;
}

body.archive.tax-library_category .hora-sb-sublist a,
.hora-library-page .hora-sb-sublist a {
  padding: 7px 12px;
  font-size: 13px;
}

body.archive.tax-library_category .hora-cat-grid,
.hora-library-page .hora-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

body.archive.tax-library_category .hora-entry-card,
.hora-library-page .hora-entry-card {
  background: #FFFFFF;
  border: 1px solid #E8E2F5;
  border-radius: 18px;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
}

body.archive.tax-library_category .hora-entry-card:hover,
.hora-library-page .hora-entry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(123, 92, 229, 0.14);
  border-color: #A78BFA;
}

body.archive.tax-library_category .hora-entry-visual,
.hora-library-page .hora-entry-visual {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #EDE7FE 0%, #F5F0FE 50%, #FAE8F4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

body.archive.tax-library_category .hora-entry-visual .glyph,
.hora-library-page .hora-entry-visual .glyph {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 88px;
  color: #7C3AED;
  opacity: 0.5;
}

body.archive.tax-library_category .hora-entry-body,
.hora-library-page .hora-entry-body {
  padding: 22px 24px 26px;
}

body.archive.tax-library_category .hora-entry-tag,
.hora-library-page .hora-entry-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #7C3AED;
  background: #EDE7FE;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}

body.archive.tax-library_category .hora-entry-card h4,
.hora-library-page .hora-entry-card h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 10px;
  color: #1A1530;
}

body.archive.tax-library_category .hora-entry-card .ex,
.hora-library-page .hora-entry-card .ex {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #6B6388;
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 1100px) {
  body.archive.tax-library_category .hora-cat-main,
  .hora-library-page .hora-cat-main {
    grid-template-columns: 1fr;
  }
  body.archive.tax-library_category .hora-cat-grid,
  .hora-library-page .hora-cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  body.archive.tax-library_category .hora-cat-grid,
  .hora-library-page .hora-cat-grid {
    grid-template-columns: 1fr;
  }
}


/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .hora-entry-main { grid-template-columns: 1fr; }
  .hora-entry-nav, .hora-toc { position: static; }
  .hora-toc { display: none; }
  .hora-cat-main { grid-template-columns: 1fr; }
  .hora-cat-sidebar { position: static; }
  .hora-cat-grid, .hora-cat-grid-hub, .hora-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hora-entry-hero { padding: 36px 18px 40px; }
  .hora-entry-main { padding: 36px 18px 60px; }
  .hora-article h2 { font-size: 26px; margin: 36px 0 14px; }
  .hora-article p, .hora-article ul, .hora-article ol { font-size: 16px; }
  .hora-article blockquote { padding: 22px; font-size: 18px; }
  .hora-pager { grid-template-columns: 1fr; }
  .hora-cat-hero { padding: 36px 18px 32px; }
  .hora-cat-main { padding: 32px 18px 60px; }
  .hora-cat-grid, .hora-cat-grid-hub, .hora-related-grid { grid-template-columns: 1fr; }
  .hora-hub-hero { padding: 48px 18px 40px; }
  .hora-hub-section { padding: 48px 18px; }
  .hora-related { padding: 48px 18px 60px; }
}