/* =====================================================================
   horoscopes.php (period pages). Builds on horoscope.css (.hp-*): hero, pills, wrap, sections, FAQ.
   ===================================================================== */
.hx-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---- 12 sign cards ---- */
.hx-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.hx-card {
  position: relative; display: flex; flex-direction: column; padding: 18px;
  border: 1px solid #e9e5db; border-radius: 18px; background: #fff; box-shadow: 0 5px 14px rgba(32, 42, 59, .045);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.hx-card:hover { border-color: #d8bd72; box-shadow: 0 12px 26px rgba(120, 90, 20, .12); transform: translateY(-2px); }
.hx-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.hx-card-head img { flex: 0 0 auto; width: 40px; height: 40px; object-fit: contain; }
.hp-section .hx-card h3 { margin: 0; padding: 0; color: #252a35; font-family: var(--font-display, Georgia, serif); font-size: 20px; font-weight: 700; line-height: 1.2; }
.hp-section .hx-card h3::before { content: none; }
.hp-section .hx-mood { margin: 3px 0 0; color: #8a6a12; font-size: 12px; font-weight: 800; line-height: 1.3; }
.hx-lines { display: grid; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.hx-lines li { color: #4b5160; font-size: 14px; line-height: 1.6; }
.hx-lines strong { color: #252a35; font-weight: 800; }
.hx-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid #efeade; color: #596274; font-size: 12px; font-weight: 700; }
.hp-section a.hx-cta { display: inline-flex; margin-top: 12px; color: #8a6a12; font-size: 14px; font-weight: 800; line-height: 1.4; text-decoration: none; }
.hx-cta::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }   /* whole card is clickable */
.hx-cta:focus-visible { outline: 3px solid #8a6a12; outline-offset: 2px; }
.hx-card-pending { border-style: dashed; background: #faf8f3; }

/* ---- Sky summary ---- */
.hx-sky { display: grid; gap: 8px; margin: 0; padding: 18px; list-style: none; border: 1px solid #f0dca6; border-radius: 16px; background: #fff8e7; }
.hx-sky li { position: relative; padding-left: 22px; color: #3b4351; font-size: 15px; line-height: 1.6; }
.hx-sky li::before { content: "\2726"; position: absolute; left: 0; top: 1px; color: #c08a13; font-size: 13px; }

/* ---- Tips card ---- */
.hx-tips { margin-top: 18px; }
.hp-section .hx-tips h3 { margin: 0 0 10px; padding: 0; font-size: 13px; }
.hp-section .hx-tips h3::before { content: none; }

/* ---- Sign dates table ---- */
.hx-table-wrap { overflow-x: auto; border: 1px solid #e9e5db; border-radius: 14px; background: #fff; }
.hx-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.hx-table thead { background: #fff8e7; }
.hx-table th, .hx-table td { padding: 11px 14px; text-align: left; white-space: nowrap; }
.hx-table thead th { color: #6b520d; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hx-table tbody th { color: #252a35; font-weight: 800; }
.hx-table tbody td { color: #4b5160; }
.hx-table tbody tr + tr > * { border-top: 1px solid #efeade; }
.hx-table tbody tr:nth-child(even) { background: #fffdf8; }

/* ---- Other periods ---- */
.hx-periodgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hp-section a.hx-period {
  display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid #e9e5db; border-radius: 14px;
  color: inherit; font-weight: 400; text-decoration: none; background: #fff; transition: border-color .2s ease, background .2s ease;
}
.hp-section a.hx-period:hover { border-color: #d8bd72; background: #fffaf0; }
.hp-section a.hx-period.is-current { border-color: #d9ae4a; background: #fff8e7; }
.hx-period strong { color: #252a35; font-size: 15px; font-weight: 800; }
.hx-period span { color: #596274; font-size: 13px; line-height: 1.5; }

.hx-empty p { margin-bottom: 16px; }

@media (min-width: 640px) {
  .hx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-periodgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .hx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .hx-card, .hp-section a.hx-period { transition: none; }
  .hx-card:hover { transform: none; }
}

/* ---- Richer page: excerpts, sign lists, jump links ---- */
.hp-section .hx-excerpt { margin: 0 0 14px; color: #3c4350; font-size: 15px; line-height: 1.75; }
.hx-excerpt { font-weight: 450;}
.hx-card .hx-meta { margin-top: auto; }
.hx-jump { margin: 0 0 26px; }
.hx-signlist { margin: 0; padding: 0; list-style: none; }
.hx-signlist li { padding: 12px 0; border-top: 1px solid #efeade; color: #3c4350; font-size: 16px; line-height: 1.75; }
.hx-signlist li:first-child { border-top: 0; }
.hx-signlist li a { margin-right: 4px; }
.hp-section .hx-moods { margin: -4px 0 18px; color: #596274; font-size: 14px; line-height: 1.7; }
.hp-section .hx-h2-gap { margin-top: 34px; }
.hx-table td, .hx-table th { white-space: normal; min-width: 90px; }
.hx-table tbody th { min-width: 110px; }





/* Fix primary button styling inside horoscope sections */
.hp-section a.btn-gold {
    color: #211807 !important;
    text-decoration: none !important;
}

.hp-section a.btn-gold:hover {
    color: #211807;
    text-decoration: none;
}

