/* =====================================================================
   Horoscope sign pages (horoscope.php): It's My Zodiac gold / cream theme.
   Uses the tokens from site-theme.css (--nav-space, --font-display, --site-ink).
   ===================================================================== */
.hp-page { padding-bottom: 36px; color: var(--site-ink, #252a35); }

/* ---- Hero ---- */
.hp-hero {
  position: relative; margin-top: calc(var(--nav-space, 74px) * -1); overflow: hidden;
  padding: calc(var(--nav-space, 74px) + 18px) 20px 26px;
  background: radial-gradient(ellipse 68% 80% at 50% 0%, rgba(255, 255, 255, .98), transparent 76%),
              linear-gradient(145deg, #f8fbff 0%, #f5f8fc 55%, #fff8e7 100%);
}
.hp-hero-inner { width: min(920px, 100%); margin: 0 auto; }
.hp-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 18px; color: #6b7280; font-size: 13px; }
.hp-breadcrumb a { color: #8a6a12; text-decoration: none; font-weight: 600; }
.hp-breadcrumb a:hover { text-decoration: underline; }
.hp-sign { display: flex; align-items: center; gap: 16px; }
.hp-sign-icon { flex: 0 0 auto; width: 64px; height: 64px; object-fit: contain; }
.hp-sign h1 {
  margin: 0; color: #252a35; font-family: var(--font-display, Georgia, serif);
  font-size: clamp(28px, 5.4vw, 44px); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; text-wrap: balance;
}
.hp-dateline { margin: 6px 0 0; color: #596274; font-size: 12px; font-weight: 500; }
.hp-lead { max-width: 1024px; margin: 18px 0 20px; color: #4b5160; font-size: 14px; line-height: 1.75; }

/* ---- Period pills + sign strip (horizontal scroll, scrollbar hidden) ---- */
.hp-periods, .hp-signs {
  position: relative; display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.hp-periods::-webkit-scrollbar, .hp-signs::-webkit-scrollbar { display: none; }
.hp-pill {
  flex: 0 0 auto; padding: 8px 14px; border: 1px solid #e8e1d1; border-radius: 99px;
  color: #596274; font-size: 13px; font-weight: 700; line-height: 1.3; text-decoration: none; background: #fff;
  transition: border-color .2s ease, background .2s ease;
}
a.hp-pill:hover { border-color: #d8bd72; background: #fffaf0; }
.hp-pill.is-active { border-color: transparent; color: #211807; background: linear-gradient(105deg, #fcd34d, #f59e0b 68%, #ea8a0c); box-shadow: 0 6px 14px rgba(216, 156, 41, .25); }
.hp-pill.is-off { border-style: dashed; color: #8a8f99; background: #faf8f3; cursor: not-allowed; }
.hp-signcard {
  flex: 0 0 auto; display: flex; width: 68px; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 3px; border: 1px solid #e8e1d1; border-radius: 14px; color: #596274; font-size: 11px; font-weight: 700;
  text-decoration: none; background: #fff; transition: border-color .2s ease, background .2s ease;
}
.hp-signcard img { width: 28px; height: 28px; object-fit: contain; }
.hp-signcard img {
    filter: brightness(0) saturate(100%) invert(72%) sepia(38%) saturate(600%) hue-rotate(5deg) brightness(90%) contrast(90%);
}
a.hp-signcard:hover { border-color: #d8bd72; background: #fffaf0; }
.hp-signcard.is-active { border-color: #d9ae4a; color: #6b520d; background: #fff8e7; }

/* ---- Layout + shared pieces ---- */
.hp-wrap { width: min(920px, calc(100% - 28px)); margin: 0 auto; padding-top: 26px; }
.hp-section { margin: 0 0 40px; }
.hp-section h2 {
  margin: 0 0 14px; padding-left: 14px; border-left: 4px solid #d9ae4a; color: #252a35;
  font-family: var(--font-display, Georgia, serif); font-size: clamp(22px, 3.2vw, 30px); font-weight: 700; line-height: 1.25; text-wrap: balance;
}
.hp-section h3 { margin: 22px 0 6px; color: #252a35; font-size: 17px; font-weight: 700; line-height: 1.35; }
.hp-section p { margin: 0 0 14px; color: #4b5160; font-size: 16px; line-height: 1.8; }
.hp-section a, .hp-more a { color: #8a6a12; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.hp-card { padding: 18px; border: 1px solid #e9e5db; border-radius: 16px; background: #fff; box-shadow: 0 5px 14px rgba(32, 42, 59, .045); }
.hp-card h3 { margin: 0 0 8px; color: #8a6a12; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hp-card p { margin: 0; font-size: 15px; line-height: 1.75; }
.hp-kicker { margin: 0 0 8px; color: #8a6a12; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hp-note { color: #6b7280; font-size: 13px; line-height: 1.6; }
.hp-section p.hp-note, p.hp-note { font-size: 13px; }
.hp-disclaimer { margin: 28px 0 0; text-align: center; }

/* ---- Quick facts ---- */
.hp-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 28px; padding: 0; list-style: none; }
.hp-facts li { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid #e9e5db; border-radius: 14px; background: #fff; }
.hp-facts span { color: #6b7280; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.hp-facts strong { color: #252a35; font-size: 16px; font-weight: 800; line-height: 1.3; }

.hp-trio, .hp-lists { display: grid; grid-template-columns: 1fr; gap: 12px; }

/* ---- WhatsApp band ---- */
.hp-cta {
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin: 0 0 40px; padding: 20px;
  border: 1px solid #f0dca6; border-radius: 18px; background: #fff8e7;
}
.hp-cta div { display: flex; flex-direction: column; gap: 4px; }
.hp-cta strong { color: #252a35; font-size: 17px; font-weight: 800; }
.hp-cta span { color: #596274; font-size: 14px; }
.hp-cta .btn-gold { min-height: 48px; padding: 0 22px; font-size: 15px; }

/* ---- At a glance ---- */
.hp-glance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0 0; }
.hp-glance div { padding: 12px 14px; border: 1px solid #e9e5db; border-radius: 14px; background: #fff; }
.hp-glance-wide { grid-column: 1 / -1; }
.hp-glance dt { margin: 0 0 3px; color: #6b7280; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.hp-glance dd { margin: 0; color: #252a35; font-size: 15px; font-weight: 700; line-height: 1.4; }

/* ---- Lists with star bullets ---- */
.hp-card ul { margin: 0; padding: 0; list-style: none; }
.hp-card li { position: relative; margin: 0 0 8px; padding-left: 22px; color: #4b5160; font-size: 15px; line-height: 1.6; }
.hp-card li::before { content: "\2726"; position: absolute; left: 0; top: 1px; color: #c08a13; font-size: 13px; }

/* ---- Compatibility chips ---- */
/*
.hp-compat h3 { margin-top: 18px; }
.hp-chips, .hp-linkgrid { display: flex; flex-wrap: wrap; gap: 8px; }
*/

/* ---- Compatibility grid ---- */
.hp-compat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 20px 0;
  padding: 14px;
  border: 1px solid #e8e6df;
  border-radius: 16px;
  background: #fdfdfc;
}

.hp-compat {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e8e6df;
  border-radius: 12px;
  background: #fff;
}

.hp-compat h3 {
  margin: 0 0 14px;
  font-size: 16px;
}

.hp-chips,
.hp-linkgrid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hp-chip { padding: 8px 14px; border: 1px solid; border-radius: 99px; font-size: 13px; font-weight: 700; line-height: 1.3; }
.hp-chip-high        { color: #166534; border-color: #bfe6c8; background: #effaf1; }
.hp-chip-moderate    { color: #7a5a0a; border-color: #f0dca6; background: #fff8e7; }
.hp-chip-challenging { color: #44403c; border-color: #e0dbd2; background: #f5f3ef; }

/* ---- Internal links ---- */
.hp-linkgrid a {
  padding: 10px 16px; border: 1px solid #e8e1d1; border-radius: 99px; color: #596274; font-size: 13px; font-weight: 700;
  line-height: 1.3; text-decoration: none; background: #fff; transition: border-color .2s ease, background .2s ease;
}
.hp-linkgrid a:hover { border-color: #d8bd72; background: #fffaf0; }
.hp-h2-spaced { margin-top: 30px; }
.hp-more { margin-top: 22px; }

/* ---- Prev / next ---- */
.hp-prevnext { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 22px; border-top: 1px solid #ece6d6; }
.hp-prevnext a {
  padding: 11px 20px; border: 1px solid #e8e1d1; border-radius: 99px; color: #596274; font-size: 14px; font-weight: 800;
  text-decoration: none; background: #fff; transition: border-color .2s ease, background .2s ease;
}
.hp-prevnext a:hover { border-color: #d8bd72; background: #fffaf0; }

/* ---- 404 ---- */
.hp-notfound { width: min(640px, calc(100% - 28px)); margin: 0 auto; padding: calc(var(--nav-space, 74px) + 40px) 0 60px; text-align: center; }
.hp-notfound h1 { margin: 0 0 12px; font-family: var(--font-display, Georgia, serif); font-size: clamp(28px, 5vw, 38px); }
.hp-notfound p { color: #4b5160; line-height: 1.7; }

/* ---- Larger screens ---- */
@media (min-width: 640px) {
  .hp-hero { padding: calc(var(--nav-space, 74px) + 26px) 24px 32px; }
  .hp-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hp-trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hp-lists { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-glance { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hp-periods { justify-content: center; }
  .hp-cta { flex-direction: row; align-items: center; justify-content: space-between; padding: 22px 26px; }

  .hp-compat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
}
}
@media (max-width: 380px) {
  .hp-sign { gap: 12px; }
  .hp-sign-icon { width: 52px; height: 52px; }
}

/* =====================================================================
   Clean editorial layout: muted canvas, navy hero, white reading surface
   ===================================================================== */
.hp-page {
  min-height: 100vh;
  padding-bottom: 44px;
  color: #202333;
  background: #f2f1ec;
}

.hp-hero {
  color: #f8f8fb;
  background: linear-gradient(135deg, #10162d 0%, #171e3a 58%, #202744 100%);
}

.hp-breadcrumb { color: #c4c9d5; }
.hp-breadcrumb a { color: #e7c66e; }
.hp-sign h1 { color: #fff; }
.hp-dateline { color: #c4cad8; }
.hp-lead { color: #e0e3eb; }

.hp-pill {
  border-color: rgba(255,255,255,.2);
  color: #e7e9ef;
  background: rgba(255,255,255,.09);
}
a.hp-pill:hover { border-color: #e7c66e; background: rgba(255,255,255,.15); }
.hp-pill.is-active {
  color: #171b2b;
  background: linear-gradient(105deg, #f4d77e, #e8b94e);
  box-shadow: 0 5px 14px rgba(0,0,0,.18);
}
.hp-pill.is-off { color: #aeb4c2; background: rgba(255,255,255,.04); }

.hp-signcard {
  border-color: rgba(255,255,255,.2);
  color: #e7e9ef;
  background: rgba(255,255,255,.09);
}
a.hp-signcard:hover { border-color: #e7c66e; background: rgba(255,255,255,.15); }
.hp-signcard.is-active {
  border-color: #e7c66e;
  color: #f4d77e;
  background: rgba(231,198,110,.13);
}

.hp-wrap {
  position: relative;
  width: min(920px, calc(100% - 28px));
  margin: 24px auto 0;
  padding: 28px 26px;
  border: 1px solid #e7e4dc;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(29,35,49,.055);
}

.hp-section { margin-bottom: 36px; }
.hp-section h2 {
  position: relative;
  padding-left: 18px;
  border-left: 0;
  color: #202333;
  font-weight: 700;
  line-height: 1.3;
}
.hp-section h2::before {
  content: "";
  position: absolute;
  top: .08em;
  left: 0;
  width: 5px;
  height: 1.15em;
  border-radius: 999px;
  background: #d7b45a;
}
.hp-section h3 {
  position: relative;
  padding-left: 14px;
  color: #292e3c;
  font-weight: 700;
}
.hp-section h3::before {
  content: "";
  position: absolute;
  top: .12em;
  left: 0;
  width: 4px;
  height: 1.05em;
  border-radius: 999px;
  background: #d7b45a;
}
.hp-section p { color: #3c4350; font-weight: 400; }

.hp-card,
.hp-facts li,
.hp-glance div {
  border-color: #e8e6df;
  background: #fdfdfc;
  box-shadow: 0 2px 8px rgba(29,35,49,.025);
}
.hp-card p,
.hp-card li { color: #3c4350; }
.hp-facts span,
.hp-glance dt { color: #727987; }
.hp-facts strong,
.hp-glance dd { color: #252a38; }

.hp-cta {
  border-color: #ead9a9;
  background: #fbf7eb;
}
.hp-cta strong { color: #252a38; }
.hp-cta span { color: #626978; }

@media (max-width: 639px) {
  .hp-wrap {
    width: calc(100% - 20px);
    margin-top: 16px;
    padding: 22px 17px;
    border-radius: 18px;
  }
  .hp-section { margin-bottom: 30px; }
}


/* Use Inter for section h2 and h3 headings */
.hp-section h2,
.hp-section h3 {
  font-family: var(--font-sans);
}

.hp-sign-icon {
    filter: brightness(0) saturate(100%) invert(72%) sepia(38%) saturate(600%) hue-rotate(5deg) brightness(90%) contrast(90%);
}

@media (min-width: 640px) {
  .hp-section h2 {
    font-size: 22px;
  }
}

@media (min-width: 640px) {
  .hp-glance {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .hp-glance > div {
    grid-column: span 2;
  }

  .hp-glance-wide {
    grid-column: span 3;
  }
}

/* Compact links for Horoscope Today for Every Sign */
.hp-linkgrid-signs {
  gap: 8px;
}

.hp-linkgrid-signs a {
  padding: 7px 10px;
  font-size: 12px;
  line-height: 1.25;
}



/* Share strip */
.hp-share {
  margin: 24px 0;
}

.hp-share-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 9px 15px;
  border-radius: 5px;
  color: #292d38;
  background: #f5d77e;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.hp-share-label svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.hp-share-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.hp-share-btn {
  min-width: 0;
  height: 44px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  box-sizing: border-box;
  transition: opacity .2s ease, transform .2s ease;
}

.hp-share-btn svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex-shrink: 0;
}

.hp-share-btn:hover {
  opacity: .88;
  transform: translateY(-2px);
}

.hp-share-whatsapp { background: #20bd68; }
.hp-share-facebook { background: #1877ed; }
.hp-share-x { background: #171717; }
.hp-share-linkedin { background: #0a66c2; }

.hp-share-copy {
  color: #343846;
  background: #f3f0e7;
  border-color: #e5dece;
}

.hp-share-copy.is-status {
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 640px) {
  .hp-share-grid {
    gap: 3px;
  }

  .hp-share-btn {
    height: 38px;
    border-radius: 3px;
  }
  
  .hp-share-label {
    width: 100%;
    box-sizing: border-box;
    gap: 8px;
    padding: 9px;
    font-size: 11px;
  }
}




/* ---- Archive notice (inside the dark hero) ---- */
.hp-archive-note {
  max-width: 760px; margin: -4px 0 18px; padding: 12px 16px;
  border: 1px solid rgba(231, 198, 110, .38); border-radius: 12px;
  color: #e0e3eb; font-size: 14px; line-height: 1.6; background: rgba(255, 255, 255, .07);
}
.hp-archive-note a { color: #e7c66e; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
