/* Star sign guides (/guide/ and /guide/<sign>/). Only loaded by those pages. Brand values come from site.css. */

/* Article head */
.g-head { max-width: 860px; text-align: center; padding: 48px 0 26px; }
.g-crumbs { font-size: 16px; color: var(--muted); margin-bottom: 18px; }
.g-crumbs a { color: var(--peach-2); font-weight: 800; text-decoration: none; }
.g-crumbs a:hover { color: #fff; }
.g-head h1 { font-size: clamp(34px, 4.4vw, 54px); text-wrap: balance; margin: 0 0 16px; }
.g-dek { font-size: clamp(19px, 1.6vw, 22px); color: var(--lav-2); margin: 0 auto; max-width: 720px; text-wrap: pretty; }

/* Hero picture */
.g-hero { margin: 8px auto 0; max-width: 1080px; }
.g-hero img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 26px; border: 1px solid var(--line); box-shadow: var(--shadow); }

/* Facts card under the picture */
.g-facts { list-style: none; position: relative; z-index: 1; max-width: 960px; margin: -44px auto 0; padding: 20px 18px; display: grid; grid-template-columns: auto repeat(4, minmax(0, 1fr));
  background: #fdfaff; color: #2a1f4a; border-radius: 22px; box-shadow: 0 24px 60px rgba(5, 2, 20, .4); }
.g-facts li { padding: 4px 14px; text-align: center; min-width: 0; }
.g-facts li + li { border-left: 1px solid #e6def8; }
.g-facts span { display: block; font-size: 16px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #6a5a9e; }
.g-facts b { display: block; font-size: 18px; font-weight: 850; line-height: 1.3; margin-top: 4px; color: #2a1f4a; }
.g-facts li:first-child b { white-space: nowrap; }

/* Body copy */
.g-body { width: min(740px, 100% - 40px); margin: 0 auto; padding: 52px 0 40px; font-size: 19px; line-height: 1.7; color: #ece6ff; }
.g-body p { margin: 0 0 1.05em; }
.g-body h2 { font-size: clamp(27px, 2.6vw, 34px); line-height: 1.2; margin: 1.9em 0 .6em; color: #fff; text-wrap: balance; }
.g-body strong { color: #fff; }
.g-body ul { margin: 0 0 1.2em; padding-left: 1.2em; }
.g-body li { margin: 0 0 .5em; }
.g-body li::marker { color: var(--peach); }

/* Free reading call to action */
.g-cta { display: flex; gap: 22px; align-items: center; margin: 36px 0 12px; padding: 26px 28px; border-radius: 24px; border: 1px solid rgba(255, 168, 119, .4);
  background: radial-gradient(500px 220px at 0% 0%, rgba(255, 138, 80, .2), transparent 70%), linear-gradient(180deg, rgba(125, 110, 195, .3), rgba(42, 31, 74, .7)); }
.g-cta img { width: 88px; height: 88px; border-radius: 50%; flex: none; box-shadow: 0 0 0 6px rgba(255, 255, 255, .05); }
.g-cta-h { margin: 0 0 6px !important; font-size: 23px; font-weight: 900; line-height: 1.25; color: #fff; }
.g-cta-p { margin: 0 0 16px !important; font-size: 17px; line-height: 1.55; color: var(--muted); }
.g-cta .btn { padding: 15px 26px; }
.g-cta-big { flex-direction: column; text-align: center; margin-top: 56px; padding: 40px 32px 38px; }
.g-cta-big img { width: 120px; height: 120px; }
.g-cta-big .g-cta-h { font-size: clamp(26px, 2.8vw, 32px); }
.g-cta-big .g-cta-p { font-size: 18px; max-width: 560px; margin-inline: auto !important; }

/* Other signs */
.g-strip { padding: 30px 0 80px; }
.g-strip-h { text-align: center; font-size: clamp(24px, 2.4vw, 30px); margin-bottom: 22px; }
.g-strip ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.g-strip a { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 6px 10px 6px 6px; border-radius: 16px; text-decoration: none; color: var(--text);
  background: var(--card); border: 1px solid var(--line); transition: border-color .15s, background .15s, transform .15s; }
.g-strip a:hover { border-color: rgba(255, 168, 119, .6); background: var(--card-2); transform: translateY(-2px); color: #fff; }
.g-strip a[aria-current] { border-color: var(--peach); background: rgba(255, 138, 80, .12); }
.g-strip img { width: 48px; height: 48px; border-radius: 50%; flex: none; }
.g-strip span { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.g-strip b { font-size: 17px; font-weight: 850; }
.g-strip i { font-style: normal; font-size: 16px; color: var(--muted); white-space: nowrap; }

/* Index page */
.g-ihero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.g-ihero-art { position: absolute; inset: 0; background: url("img/guide-index.webp") 70% center / cover no-repeat; }
.g-ihero-art::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,15,38,.95) 0%, rgba(20,15,38,.8) 42%, rgba(20,15,38,.2) 75%, rgba(20,15,38,.35) 100%), linear-gradient(0deg, rgba(20,15,38,.9) 0%, transparent 35%); }
.g-ihero-in { position: relative; padding: 96px 0 110px; max-width: 1180px; }
.g-ihero-in h1 { font-size: clamp(34px, 4.4vw, 56px); max-width: 680px; margin: 16px 0 18px; text-wrap: balance; }
.g-ihero .g-dek { margin: 0; max-width: 600px; }
.g-index { padding: 64px 0 30px; }
.g-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.g-card { display: flex; flex-direction: column; height: 100%; border-radius: 22px; overflow: hidden; text-decoration: none; color: var(--text);
  background: var(--card); border: 1px solid var(--line); transition: transform .2s, border-color .2s, box-shadow .2s; }
.g-card > img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.g-card-in { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 22px; flex: 1; }
.g-card-top { display: flex; align-items: center; gap: 12px; margin-top: -48px; }
.g-card-top img { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--night-2); flex: none; }
.g-card-top > span { display: flex; flex-direction: column; line-height: 1.2; padding-top: 30px; }
.g-card-top b { font-size: 24px; font-weight: 900; }
.g-card-top i { font-style: normal; font-size: 16px; color: var(--muted); }
.g-card-meta { font-size: 16px; color: var(--lav-2); }
.g-card-go { margin-top: auto; font-size: 17px; font-weight: 850; color: var(--peach-2); }
.g-card-go::after { content: " \2192"; }
.g-card:hover { transform: translateY(-4px); border-color: rgba(255, 168, 119, .6); box-shadow: var(--shadow); color: #fff; }
.g-index-cta { padding: 40px 0 90px; }

@media (max-width: 1020px) {
  .g-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; }
  .g-facts li:nth-child(4) { border-left: 0; }
  .g-strip ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .g-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .g-head { padding: 30px 0 20px; text-align: left; }
  .g-head h1 { font-size: 32px; }
  .g-dek { font-size: 18px; }
  .g-hero { width: 100%; }
  .g-hero img { border-radius: 0; border-left: 0; border-right: 0; }
  .g-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: -28px; width: calc(100% - 32px); padding: 14px 10px; gap: 0; }
  .g-facts li { padding: 10px 8px; border-left: 0 !important; text-align: left; }
  .g-facts li:first-child { grid-column: 1 / -1; }
  .g-facts li:nth-child(n+2) { border-top: 1px solid #e6def8; }
  .g-facts b { font-size: 17px; }
  .g-facts li:first-child b { white-space: normal; }
  .g-body { width: calc(100% - 36px); font-size: 17px; line-height: 1.68; padding-top: 38px; }
  .g-body h2 { font-size: 25px; }
  .g-cta { flex-direction: column; text-align: center; padding: 24px 18px; gap: 14px; }
  .g-cta-h { font-size: 21px; }
  .g-cta .btn { width: 100%; padding: 15px 18px; }
  .g-strip ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .g-strip a { gap: 8px; padding: 6px 6px 6px 5px; }
  .g-strip img { width: 40px; height: 40px; }
  .g-ihero-art { background-position: 75% center; }
  .g-ihero-art::after { background: linear-gradient(0deg, rgba(20,15,38,.96) 0%, rgba(20,15,38,.8) 60%, rgba(20,15,38,.45) 100%); }
  .g-ihero-in { padding: 56px 0 60px; }
  .g-ihero-in h1 { font-size: 32px; }
  .g-index { padding-top: 40px; }
  .g-cards { grid-template-columns: 1fr; gap: 18px; }
}
@media (prefers-reduced-motion: reduce) { .g-strip a, .g-card { transition: none; } }
