/* =====================================================================
   astrology-glossary.php + glossary-term.php. Builds on horoscope.css (.hp-*).
   ===================================================================== */
.gl-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.hp-section { scroll-margin-top: 90px; }
.gl-jump { margin: 0 0 20px; }
.gl-count { margin: 0 0 14px; }
.gl-empty { margin: 0 0 24px; padding: 16px 18px; border: 1px dashed #d8bd72; border-radius: 14px; color: #4b5160; font-size: 15px; line-height: 1.6; background: #fffaf0; }
.gl-empty a { color: #8a6a12; font-weight: 700; }

/* ---- Search (inside the hero) ---- */
.gl-search { max-width: 560px; margin: 18px 0 4px; }
.gl-search[hidden] { display: none; }
.gl-search input {
  width: 100%; min-height: 50px; padding: 0 20px; border: 1px solid #e0d4b3; border-radius: 99px;
  color: #252a35; font: inherit; font-size: 16px; background: #fffdf8; box-shadow: 0 6px 18px rgba(32, 42, 59, .08);
}
.gl-search input:focus-visible { outline: 3px solid rgba(217, 174, 74, .45); outline-offset: 2px; border-color: #d9ae4a; }

/* ---- Term cards ---- */
.gl-cards { display: grid; grid-template-columns: 1fr; gap: 12px; }
.gl-card {
  position: relative; display: flex; flex-direction: column; padding: 16px 18px; border: 1px solid #e9e5db; border-radius: 16px;
  background: #fff; box-shadow: 0 5px 14px rgba(32, 42, 59, .04); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.gl-card[hidden], .gl-cat[hidden] { display: none; }
.gl-card:hover { border-color: #d8bd72; box-shadow: 0 12px 26px rgba(120, 90, 20, .1); transform: translateY(-2px); }
.hp-section .gl-card h3 { margin: 0 0 8px; padding: 0; color: #252a35; font-family: var(--font-display, Georgia, serif); font-size: 19px; font-weight: 700; line-height: 1.25; }

.hp-section .gl-card h3 a { color: inherit; text-decoration: none; }
.hp-section .gl-card p { margin: 0 0 12px; color: #3c4350; font-size: 15px; line-height: 1.7; }
.hp-section a.gl-more { margin-top: auto; color: #8a6a12; font-size: 14px; font-weight: 800; text-decoration: none; }
.gl-more::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }   /* whole card is clickable */
.gl-more:focus-visible { outline: 3px solid #8a6a12; outline-offset: 2px; }
@media (min-width: 640px) { .gl-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .gl-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---- A to Z ---- */
.hp-linkgrid.gl-letters { margin: 0 0 8px; }
.gl-letters a { min-width: 40px; text-align: center; }

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

/* ---- Pager ---- */
.gl-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0 8px; padding-top: 18px; border-top: 1px solid #ece6d6; color: #596274; font-size: 14px; font-weight: 700; }
.gl-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; }
.gl-pager a:hover { border-color: #d8bd72; background: #fffaf0; }
@media (max-width: 520px) { .gl-pager { flex-wrap: wrap; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .gl-card { transition: none; } .gl-card:hover { transform: none; } }

/* ---- H3 headings: display font and star ---- */

.hp-section h3 {
    font-family: var(--font-display, Georgia, serif);
}

.hp-section h3::before {
    content: "✦";
    position: static;
    display: inline-block;
    width: auto;
    height: auto;
    margin: 0 10px 0 0;
    padding: 0;
    border: 0;
    background: none;
    color: #d9ae4a;
    font-family: sans-serif;
    font-size: 0.85em;
    line-height: 1;
    vertical-align: 0.08em;
}

