/* Arctara guides: article styles for the /learn/ guide pages.
   Loaded after the site stylesheet and built on its tokens (--gold, --ink-2, --line ...).
   Every class here starts with gd-, so nothing in site.css is touched.
   After editing this file run relink-guides.mjs: it renames the file to match its hash. */

/* ---------- page head ---------- */
.gd-head .h1 { font-size: clamp(1.9rem, 5.4vw, 3rem); }
.gd-head .lede { max-width: 42rem; }
.gd-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem;
  margin: 1.3rem 0 0; font-size: .82rem; color: var(--ink-3, #A99D84);
}

/* ---------- layout: article column plus "on this page" ---------- */
.sec.gd-sec { padding-top: clamp(12px, 2.5vw, 28px); padding-bottom: clamp(24px, 4vw, 48px); }
.gd-layout { display: grid; gap: 1.8rem; }

.gd-toc__t {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.gd-toc ol { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.gd-toc li { margin: 0; }
.gd-toc a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 .95rem;
  border: 1px solid var(--line, rgba(212,175,55,.22)); border-radius: 999px;
  background: rgba(212,175,55,.04); color: var(--ink-2, #CFC6B3);
  font-size: .8rem; line-height: 1.2; text-decoration: none;
  transition: color .2s, border-color .2s, background .2s;
}
.gd-toc a:hover { color: var(--gold-hi, #F1D77C); border-color: var(--line-2, rgba(212,175,55,.42)); background: rgba(212,175,55,.09); }

@media (min-width: 1020px) {
  .gd-layout { grid-template-columns: minmax(0, 46rem) 15rem; column-gap: 4rem; align-items: start; }
  .gd { grid-column: 1; grid-row: 1; }
  .gd-toc {
    grid-column: 2; grid-row: 1; align-self: start;
    position: sticky; top: calc(var(--nav-h, 64px) + 28px);
    padding-left: 1.3rem; border-left: 1px solid var(--line, rgba(212,175,55,.22));
  }
  .gd-toc__t {
    position: static; width: auto; height: auto; margin: 0 0 .8rem; overflow: visible; clip: auto;
    font: 600 .74rem/1.3 var(--f-display, 'Cinzel', serif); letter-spacing: .16em;
    text-transform: uppercase; color: var(--gold, #D4AF37);
  }
  .gd-toc ol { flex-direction: column; flex-wrap: nowrap; gap: .1rem; }
  .gd-toc a {
    min-height: 34px; padding: 0 .1rem; border: 0; border-radius: 6px;
    background: none; font-size: .88rem;
  }
  .gd-toc a:hover { background: none; }
}

/* ---------- article text ---------- */
.gd {
  min-width: 0; max-width: 46rem; overflow-wrap: break-word;
  font-size: 1rem; line-height: 1.8; color: var(--ink-2, #CFC6B3);
}
.gd > :first-child { margin-top: 0; }
.gd > p { margin: 0 0 1.4rem; }
.gd > h2 {
  margin: 3.2rem 0 1.1rem; padding-bottom: .6rem;
  border-bottom: 1px solid var(--line, rgba(212,175,55,.22));
  font: 600 clamp(1.35rem, 3.2vw, 1.75rem)/1.2 var(--f-display, 'Cinzel', serif);
  letter-spacing: .03em; color: var(--gold, #D4AF37); text-wrap: balance;
}
.gd > h3 {
  margin: 2.2rem 0 .7rem;
  font: 600 1.12rem/1.3 var(--f-display, 'Cinzel', serif);
  letter-spacing: .03em; color: var(--gold-hi, #F1D77C);
}
.gd > ul, .gd > ol { margin: 0 0 1.5rem; padding-left: 1.3rem; list-style: disc; }
.gd > ol { list-style: decimal; }
.gd > ul > li, .gd > ol > li { margin: 0 0 .7rem; padding-left: .25rem; }
.gd li::marker { color: var(--gold, #D4AF37); }
.gd a:not(.btn) { color: var(--gold, #D4AF37); text-underline-offset: 3px; }
.gd a:not(.btn):hover { color: var(--gold-hi, #F1D77C); }
.gd strong { color: var(--gold-hi, #F1D77C); font-weight: 500; }
.gd em { color: var(--ink, #ECE6D8); font-style: italic; }

/* ---------- small marks ---------- */
.gd-gl { width: 1em; height: 1em; }
.gd-dia {
  display: inline-block; width: .62rem; height: .62rem; margin: .5rem;
  border: 1.5px solid currentColor; transform: rotate(45deg);
}
.gd-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.9rem; height: 1.9rem; border-radius: 50%;
  border: 1px solid var(--line-2, rgba(212,175,55,.42)); background: rgba(212,175,55,.07);
  font: 600 .9rem/1 var(--f-display, 'Cinzel', serif); color: var(--gold, #D4AF37);
}
.gd-tag {
  display: inline-block; padding: .2rem .75rem; border-radius: 999px;
  border: 1px solid var(--line, rgba(212,175,55,.22)); background: rgba(212,175,55,.05);
  font-size: .76rem; line-height: 1.5; color: var(--ink-2, #CFC6B3);
}

/* ---------- callout and pull quote ---------- */
.gd-callout {
  margin: 2rem 0; padding: 1.5rem 1.7rem;
  border: 1px solid var(--line, rgba(212,175,55,.22)); border-radius: var(--r, 16px);
  background: linear-gradient(135deg, var(--glass, rgba(212,175,55,.05)), var(--glass-v, rgba(138,43,226,.10)));
}
.gd-callout p { margin: 0; font-size: .97rem; }
.gd-callout .gd-callout__t {
  margin: 0 0 .65rem; font: 600 .82rem/1.3 var(--f-display, 'Cinzel', serif);
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold, #D4AF37);
}
.gd > .gd-quote {
  margin: 2.6rem 0; padding: 1rem 1.5rem;
  border-left: 2px solid var(--gold, #D4AF37); border-radius: 0 var(--r-s, 12px) var(--r-s, 12px) 0;
  background: var(--glass, rgba(212,175,55,.05));
  font: 600 clamp(1.02rem, 2.4vw, 1.2rem)/1.65 var(--f-display, 'Cinzel', serif);
  letter-spacing: .02em; color: var(--gold-hi, #F1D77C);
}

/* ---------- item lists (phases, planets, steps, sabbats) ---------- */
.gd-list { display: grid; gap: .9rem; margin: 1.5rem 0 2rem; }
.gd-item {
  display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 1rem; align-items: start;
  padding: 1.15rem 1.35rem;
  border: 1px solid var(--line, rgba(212,175,55,.22)); border-radius: var(--r-s, 12px);
  background: var(--glass, rgba(212,175,55,.05));
}
.gd-item__sym {
  display: flex; align-items: center; justify-content: center;
  min-height: 1.9rem; color: var(--gold, #D4AF37);
}
.gd-item__sym > svg { width: 1.7rem; height: 1.7rem; }
.gd-item__sym > .gd-gl { width: 1.5rem; height: 1.5rem; }
.gd-item__sym > .gd-dia { margin: 0; }
.gd-item__body { min-width: 0; }
.gd-item__name {
  margin: 0 0 .3rem; font: 600 1rem/1.4 var(--f-display, 'Cinzel', serif);
  letter-spacing: .03em; color: var(--gold, #D4AF37);
}
.gd-item__desc { font-size: .92rem; line-height: 1.65; color: var(--ink-2, #CFC6B3); }
.gd-dates {
  display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; margin: 0 0 .5rem;
  font-size: .8rem; line-height: 1.5; color: var(--ink-3, #A99D84);
}
.gd-dates strong { color: var(--gold-hi, #F1D77C); }
@media (max-width: 600px) {
  .gd-item { grid-template-columns: 1.7rem minmax(0, 1fr); gap: .8rem; padding: 1rem 1.05rem; }
  .gd-item__sym > svg { width: 1.45rem; height: 1.45rem; }
  .gd-num { width: 1.6rem; height: 1.6rem; font-size: .8rem; }
}

/* ---------- week of planets ---------- */
.gd-week { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin: 1.5rem 0 2rem; }
.gd-day {
  flex: 0 0 calc((100% - 2.4rem) / 4); min-width: 0; padding: 1.25rem .7rem 1.1rem; text-align: center;
  border: 1px solid var(--line, rgba(212,175,55,.22)); border-radius: var(--r-s, 12px);
  background: linear-gradient(160deg, var(--glass, rgba(212,175,55,.05)), var(--glass-v, rgba(138,43,226,.10)));
}
.gd-day__gl {
  display: flex; align-items: center; justify-content: center;
  width: 2.9rem; height: 2.9rem; margin: 0 auto .7rem; border-radius: 50%;
  border: 1px solid var(--line-2, rgba(212,175,55,.42)); background: rgba(212,175,55,.07);
  color: var(--gold, #D4AF37);
}
.gd-day__gl .gd-gl { width: 1.35rem; height: 1.35rem; }
.gd-day__name {
  margin: 0 0 .65rem; font: 600 .92rem/1.2 var(--f-display, 'Cinzel', serif);
  letter-spacing: .04em; color: var(--gold, #D4AF37);
}
.gd-day__kw { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem; }
.gd-day__kw span {
  padding: .15rem .55rem; border-radius: 999px; font-size: .68rem; line-height: 1.5;
  border: 1px solid var(--line, rgba(212,175,55,.22)); background: rgba(212,175,55,.05);
  color: var(--ink-2, #CFC6B3);
}
@media (max-width: 699px) { .gd-day { flex-basis: calc((100% - 1.6rem) / 3); } }
@media (max-width: 439px) { .gd-day { flex-basis: calc((100% - .8rem) / 2); } }

/* ---------- spell cards, materials ---------- */
.gd-spell {
  margin: 1.4rem 0 2rem; overflow: hidden;
  border: 1px solid var(--line, rgba(212,175,55,.22)); border-radius: var(--r, 16px);
  background: var(--glass, rgba(212,175,55,.05));
}
.gd-spell__h {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; padding: .95rem 1.4rem;
  border-bottom: 1px solid var(--line, rgba(212,175,55,.22)); background: rgba(212,175,55,.07);
}
.gd-spell__ico { display: inline-flex; color: var(--gold, #D4AF37); }
.gd-spell__ico svg { width: 1.1rem; height: 1.1rem; }
.gd-spell__ico .gd-dia { margin: .25rem; }
.gd-spell__name {
  font: 600 1rem/1.3 var(--f-display, 'Cinzel', serif); letter-spacing: .03em; color: var(--gold, #D4AF37);
}
.gd-spell__lvl {
  margin-left: auto; padding: .15rem .7rem; border-radius: 999px;
  border: 1px solid var(--line-2, rgba(212,175,55,.42));
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2, #CFC6B3);
}
.gd-spell__b { padding: 1.3rem 1.4rem; }
.gd-spell__b p { margin: 0 0 1rem; font-size: .95rem; }
.gd-spell__b p:last-of-type { margin-bottom: 0; }
.gd-spell__mat {
  display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.1rem; padding-top: 1.1rem;
  border-top: 1px solid var(--line, rgba(212,175,55,.22));
}

/* ---------- correspondences grid ---------- */
.gd-corr {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 1.5rem 0 2rem; overflow: hidden;
  border: 1px solid var(--line, rgba(212,175,55,.22)); border-radius: var(--r, 16px);
  background: var(--line, rgba(212,175,55,.22));
}
.gd-corr__c { padding: 1.1rem 1.35rem; background: var(--night, #0a0a14); }
.gd-corr__l {
  margin: 0 0 .45rem; font: 600 .74rem/1.3 var(--f-display, 'Cinzel', serif);
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold, #D4AF37);
}
.gd-corr__v { font-size: .9rem; line-height: 1.6; color: var(--ink-2, #CFC6B3); }
@media (max-width: 600px) { .gd-corr { grid-template-columns: 1fr; } }

/* ---------- warning box ---------- */
.gd-warn {
  margin: 2rem 0; padding: 1.4rem 1.6rem;
  border: 1px solid rgba(255,157,157,.32); border-radius: var(--r, 16px); background: rgba(255,157,157,.06);
}
.gd-warn p { margin: 0; font-size: .95rem; }
.gd-warn .gd-warn__l {
  margin: 0 0 .6rem; font: 600 .76rem/1.3 var(--f-display, 'Cinzel', serif);
  letter-spacing: .14em; text-transform: uppercase; color: var(--bad, #FF9D9D);
}

/* ---------- moon bar ---------- */
.gd-moonbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.1rem; margin: 0 0 2rem; padding: 1rem 1.3rem;
  border: 1px solid var(--line, rgba(212,175,55,.22)); border-radius: var(--r-s, 12px);
  background: var(--glass, rgba(212,175,55,.05));
}
.gd-moonbar__m { display: flex; align-items: center; gap: .4rem; }
.gd-moonbar__m > span { display: inline-flex; opacity: .3; }
.gd-moonbar__m > span.is-on { opacity: 1; }
.gd-moonbar__m svg { width: 1.15rem; height: 1.15rem; }
.gd-moonbar__t { font-size: .85rem; line-height: 1.5; color: var(--ink-2, #CFC6B3); }
.gd-moonbar__t strong { color: var(--gold-hi, #F1D77C); }

/* ---------- table ---------- */
.gd-tablewrap {
  margin: 1.5rem 0 2rem; overflow-x: auto;
  border: 1px solid var(--line, rgba(212,175,55,.22)); border-radius: var(--r, 16px);
  background: rgba(10,8,20,.62);
}
.gd-tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.gd-tbl th, .gd-tbl td {
  padding: .75rem 1rem; text-align: left; vertical-align: top;
  border-bottom: 1px solid rgba(212,175,55,.12);
}
.gd-tbl thead th {
  border-bottom-color: var(--line-2, rgba(212,175,55,.42));
  font: 600 .72rem/1.3 var(--f-display, 'Cinzel', serif); letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold, #D4AF37);
}
.gd-tbl tbody th {
  font: 600 .9rem/1.4 var(--f-display, 'Cinzel', serif); letter-spacing: .04em; color: var(--gold-hi, #F1D77C);
}
.gd-tbl td { color: var(--ink-2, #CFC6B3); }
.gd-tbl tbody tr:last-child > * { border-bottom: 0; }
@media (max-width: 600px) {
  .gd-tbl { font-size: .84rem; }
  .gd-tbl th, .gd-tbl td { padding: .65rem .55rem; }
  .gd-tbl thead th { font-size: .66rem; letter-spacing: .08em; }
  .gd-tbl tbody th { font-size: .82rem; letter-spacing: .02em; }
}

/* ---------- FAQ ---------- */
.gd-faq { display: grid; gap: .9rem; margin: 1.4rem 0 2rem; }
.gd-faq__i {
  padding: 1.3rem 1.5rem;
  border: 1px solid var(--line, rgba(212,175,55,.22)); border-radius: var(--r, 16px);
  background: linear-gradient(135deg, var(--glass, rgba(212,175,55,.05)), var(--glass-v, rgba(138,43,226,.10)));
}
.gd-faq__i h3 {
  margin: 0 0 .6rem; font: 600 1.02rem/1.4 var(--f-display, 'Cinzel', serif);
  letter-spacing: .03em; color: var(--gold, #D4AF37);
}
.gd-faq__i p { margin: 0; font-size: .95rem; }

/* ---------- call to action ---------- */
.gd-cta {
  margin: 3.2rem 0; padding: clamp(1.8rem, 5vw, 2.8rem) clamp(1.3rem, 4vw, 2.2rem); text-align: center;
  border: 1px solid var(--line-2, rgba(212,175,55,.42)); border-radius: calc(var(--r, 16px) + 4px);
  background: linear-gradient(135deg, var(--glass, rgba(212,175,55,.05)), var(--glass-v, rgba(138,43,226,.10)));
}
.gd-cta__eyebrow {
  margin: 0 0 .7rem; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3, #A99D84);
}
.gd-cta h2 {
  margin: 0 0 .8rem; font: 600 clamp(1.35rem, 3.4vw, 1.7rem)/1.2 var(--f-display, 'Cinzel', serif);
  letter-spacing: .03em; color: var(--gold, #D4AF37); text-wrap: balance;
}
.gd-cta__text { margin: 0 auto 1.7rem; max-width: 34rem; font-size: .97rem; color: var(--ink-2, #CFC6B3); }
.gd-cta__act { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }

/* ---------- closing band: "Put the guides into practice" (Learn page and guides) ---------- */
.band {
  display: grid; gap: 1.4rem 2.5rem; align-items: center;
  padding: clamp(1.4rem, 4vw, 2.2rem) clamp(1.3rem, 4vw, 2.4rem);
  border: 1px solid var(--line-2, rgba(212,175,55,.42)); border-radius: calc(var(--r, 16px) + 4px);
  background: linear-gradient(135deg, var(--glass, rgba(212,175,55,.05)), var(--glass-v, rgba(138,43,226,.10)));
}
.band__txt h2 { font-size: clamp(1.3rem, 3.2vw, 1.7rem); margin-bottom: .6rem; text-wrap: balance; }
.band__txt .sub { margin: 0; max-width: 36rem; font-size: 1rem; }
.band__act { display: grid; gap: .9rem; justify-items: start; }
.band__act .fine { margin: 0; max-width: 21rem; text-wrap: balance; }
@media (min-width: 860px) { .band { grid-template-columns: minmax(0, 1fr) auto; } }

/* ---------- continue reading ---------- */
.sec.gd-more { padding-top: clamp(16px, 3vw, 32px); padding-bottom: clamp(24px, 4vw, 48px); }
.gd-more__t { margin: 0 0 1.1rem; font-size: clamp(1.3rem, 3vw, 1.65rem); }

/* ---------- nav: guide pages sit inside Learn ---------- */
.nav__links a[aria-current="true"], .mobile a[aria-current="true"] { color: var(--gold-hi, #F1D77C); }

/* ---------- print ---------- */
@media print {
  .gd-toc { display: none; }
  .gd-callout, .gd-item, .gd-spell, .gd-faq__i, .gd-day, .gd-warn, .gd-cta { break-inside: avoid; }
  .gd-corr__c, .gd-tablewrap { background: #fff; }
  .gd-moonbar__m > span { opacity: 1; }
}
