/* =====================================================================
   horoscope-archive.php. Builds on horoscope.css (.hp-*): hero, wrap, sections, chips, FAQ.
   ===================================================================== */
.hp-section { scroll-margin-top: 90px; }
.ar-jump { margin: 0 0 26px; }
.hp-section .ar-h2-gap, .ar-h2-gap { margin-top: 34px; }

/* ---- Filter chips (active state) ---- */
.hp-linkgrid.ar-types { margin: 0 0 18px; }
.hp-linkgrid a.is-active { border-color: #d9ae4a; color: #6b520d; background: #fff8e7; }

/* ---- Month and sign grids ---- */
.ar-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.hp-section a.ar-month, .hp-section a.ar-sign {
  display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; 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, transform .2s ease;
}
.hp-section a.ar-month:hover, .hp-section a.ar-sign:hover { border-color: #d8bd72; background: #fffaf0; transform: translateY(-1px); }
.ar-month strong, .ar-sign strong { color: #252a35; font-size: 15px; font-weight: 800; line-height: 1.3; }
.ar-month span, .ar-sign span { color: #596274; font-size: 13px; line-height: 1.5; }
.ar-sign img { width: 36px; height: 36px; margin-bottom: 4px; object-fit: contain; }
.ar-grid-signs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .ar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ar-grid-signs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .ar-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ar-grid-signs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---- Reading list ---- */
.ar-list { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0 0 8px; }
.hp-section a.ar-item {
  display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; 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.ar-item:hover { border-color: #d8bd72; background: #fffaf0; }
.ar-item-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ar-item-top strong { color: #252a35; font-size: 15px; font-weight: 800; }
.ar-item-top em { color: #8a6a12; font-size: 11px; font-style: normal; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ar-item-title { color: #8a6a12; font-size: 14px; font-weight: 700; line-height: 1.45; }
.ar-item-mood { color: #596274; font-size: 13px; line-height: 1.5; }
@media (min-width: 640px) { .ar-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- Pager ---- */
.ar-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0 8px; padding-top: 18px; border-top: 1px solid #ece6d6; color: #596274; font-size: 14px; font-weight: 700; }
.ar-pager a { padding: 10px 18px; border: 1px solid #e8e1d1; border-radius: 99px; color: #596274; text-decoration: none; background: #fff; transition: border-color .2s ease, background .2s ease; }
.ar-pager a:hover { border-color: #d8bd72; background: #fffaf0; }

/* ---- Date grid (month view) ---- */
.ar-daygrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.hp-section a.ar-day {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border: 1px solid #e9e5db; border-radius: 12px;
  color: inherit; font-weight: 400; text-decoration: none; background: #fff; transition: border-color .2s ease, background .2s ease;
}
.hp-section a.ar-day:hover { border-color: #d8bd72; background: #fffaf0; }
.ar-day span { color: #596274; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ar-day strong { color: #252a35; font-size: 20px; font-weight: 800; line-height: 1.1; }
.ar-day small { color: #8a6a12; font-size: 11px; font-weight: 700; }
@media (min-width: 640px) { .ar-daygrid { grid-template-columns: repeat(7, minmax(0, 1fr)); } }

/* ---- Day view: 12 sign cards ---- */
.ar-cards { display: grid; grid-template-columns: 1fr; gap: 14px; }
.ar-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; }
.ar-card:hover { border-color: #d8bd72; box-shadow: 0 12px 26px rgba(120, 90, 20, .12); transform: translateY(-2px); }
.ar-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ar-card-head img { flex: 0 0 auto; width: 40px; height: 40px; object-fit: contain; }
.hp-section .ar-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 .ar-card h3::before { content: none; }
.hp-section .ar-mood { margin: 3px 0 0; color: #8a6a12; font-size: 12px; font-weight: 800; line-height: 1.3; }
.hp-section .ar-excerpt { margin: 0 0 14px; color: #3c4350; font-size: 15px; line-height: 1.75; }
.ar-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.ar-cta { display: inline-flex; margin-top: 12px; color: #8a6a12; font-size: 14px; font-weight: 800; line-height: 1.4; text-decoration: none; }
.ar-cta::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }
.ar-cta:focus-visible { outline: 3px solid #8a6a12; outline-offset: 2px; }
@media (min-width: 640px) { .ar-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .ar-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .ar-card, .ar-month, .ar-sign, .ar-item, .ar-day { transition: none; } .ar-card:hover { transform: none; } }

.ar-sign img,
.ar-card-head img {
    filter: brightness(0) saturate(100%) invert(72%) sepia(38%) saturate(600%) hue-rotate(5deg) brightness(90%) contrast(90%);
}


