/* Moonday astrology guides (The Signs, The Planets, The Houses), shared by the web pages (signs.php, planets.php,
   houses.php) and the printed PDFs (tools/guide-pdf.sh). Generated by tools/guides_split.py from notes/guides/ on 11/1;
   edit this file from now on. Every class is prefixed gd- so the site's own classes never clash. */
/* Daniel 11/4: the sign and planet symbols in our own font, so no device swaps in its colored emoji (his
   Chromebook did). Subsets of Noto Sans Symbols (1) and Noto Sans Symbols 2 (2), SIL Open Font License 1.1. */
@font-face { font-family: "Moonday Glyphs"; src: url("../fonts/moonday-glyphs-1.ttf?v=4") format("truetype"); unicode-range: U+0020, U+260A-260B, U+262F, U+263D-2653, U+26B7; }
@font-face { font-family: "Moonday Glyphs"; src: url("../fonts/moonday-glyphs-2.ttf?v=4") format("truetype"); unicode-range: U+2609, U+2BF2; }

.gd {
  --night: #0a1628; --night-2: #10223b; --night-3: #18304f;
  --ink: #1b2a40; --soft: #4a5a72; --muted: #7d8aa0;
  --sea: #8fd3cf; --sea-deep: #3f8f8a; --lavender: #c3b1e8; --lav-deep: #7a64b0; --rose: #f0b8c4;
  --paper: #ffffff; --pearl: #e9eef5; --line: #dfe4ec;
  --fire: #e0645a; --earth: #8fae6b; --air: #8ccbea; --water: #3f6cb3;
  --display: "Fraunces", Georgia, serif;
  --body: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  --glyph: "Moonday Glyphs", "Segoe UI Symbol", "Noto Sans Symbols 2", "Apple Symbols", "DejaVu Sans", serif;
}
.gd * { box-sizing: border-box; }
.gd { margin: 0; }
.gd { background: var(--paper); color: var(--ink); font: 400 10.6pt/1.6 var(--body); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.gd h1, .gd h2, .gd h3 { font-family: var(--display); font-weight: 400; font-variation-settings: "SOFT" 100, "WONK" 0; letter-spacing: -0.01em; margin: 0; }
.gd .gd-wrap { padding: 0 0.7in; }
.gd .gd-g { font-family: var(--glyph); font-variant-emoji: text; }
.gd .gd-page-break { break-before: page; }

/* Title band. Daniel 10/31: Moonday.app above, the logo below it on the left; the title + description beside the logo, same height */
.gd .gd-band { position: relative; background: radial-gradient(120% 140% at 85% 0%, #1d3a5e 0%, var(--night-2) 45%, var(--night) 100%); color: #f2f5f9; padding: 0.45in 0.7in 0.4in; overflow: hidden; }
.gd .gd-band .gd-stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.gd .gd-band .gd-head { position: relative; display: grid; grid-template-columns: 1.3in 1fr; column-gap: 0.4in; }
.gd .gd-band .gd-site { grid-column: 1; font: 600 13pt/1 var(--display); letter-spacing: .03em; color: #f2f5f9; text-align: center; margin-bottom: 10px; }
.gd .gd-band .gd-logo { grid-column: 1; grid-row: 2; width: 1.3in; height: 1.32in; opacity: .95; }
.gd .gd-band .gd-title { grid-column: 2; grid-row: 2; display: flex; flex-direction: column; justify-content: center; height: 1.32in; }
.gd .gd-band h1 { font-size: 46pt; line-height: 1; margin-bottom: 10px; }
.gd .gd-band .gd-sub { font: 300 15pt/1.3 var(--display); color: #bfcbdb; font-style: italic; max-width: 5.4in; }

/* Intro with a picture on the right */
.gd .gd-intro { display: grid; grid-template-columns: 1fr 2.3in; gap: 0.35in; align-items: center; margin: 0.28in 0 0.05in; }
.gd .gd-intro p { margin: 0 0 9px; color: var(--soft); }
.gd .gd-intro p:first-child { font-size: 12pt; line-height: 1.55; color: var(--ink); }
.gd .gd-wheel { margin: 0; }
.gd .gd-wheel svg { width: 100%; height: auto; display: block; }
.gd .gd-wheel figcaption { text-align: center; font-size: 8.4pt; color: var(--muted); margin-top: 4px; }

.gd .gd-quote { margin: 0.12in 0 0.22in; padding: 14px 20px; border-left: 3px solid var(--sea); background: linear-gradient(90deg, rgba(143,211,207,.16), rgba(143,211,207,0)); font: 400 13.5pt/1.4 var(--display); font-style: italic; color: var(--night-3); }
.gd .gd-quote b { font-weight: 500; font-style: normal; color: var(--sea-deep); }

.gd h2 { font-size: 22pt; color: var(--night); margin-bottom: 4px; }
.gd .gd-lead { color: var(--soft); margin: 0 0 16px; max-width: 6.2in; }

/* Cards, alone or in pairs of opposites */
.gd .gd-pair { display: grid; grid-template-columns: 1fr 30px 1fr; align-items: stretch; margin-bottom: 6px; break-inside: avoid; }
.gd .gd-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin-bottom: 8px; }
.gd .gd-card { background: #f6f8fb; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px 9px; display: grid; grid-template-columns: 42px 1fr; grid-template-rows: auto auto auto 1fr; align-content: start; column-gap: 12px; break-inside: avoid; }
.gd .gd-card > :not(.gd-num) { grid-column: 2; }
.gd .gd-num { grid-row: 1 / span 4; width: 42px; height: 42px; border-radius: 50%; background: rgba(195,177,232,.24); color: #5a4596; box-shadow: inset 0 0 0 1.5px #a993d8; display: grid; place-items: center; font: 400 17pt/1 var(--display); }
.gd .gd-num sup { font: 700 7pt/1 var(--body); margin-left: 1px; color: var(--lav-deep); }
.gd .gd-num.gd-g { font: 400 19pt/1 var(--glyph); }
.gd .gd-num.gd-small-text { font: 700 10pt/1 var(--body); letter-spacing: .04em; }
.gd .gd-card h3 { font-size: 14pt; color: var(--night); line-height: 1.15; }
.gd .gd-card h3 .gd-role { font: italic 300 10.5pt/1 var(--display); color: var(--lav-deep); margin-left: 6px; letter-spacing: 0; }
.gd .gd-card .gd-kind { font: 700 7.4pt/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; margin-top: 3px; }
.gd .gd-card p { margin: 2px 0 5px; color: var(--soft); font-size: 9.6pt; line-height: 1.45; }
.gd .gd-tags { display: flex; flex-wrap: wrap; gap: 4px; align-self: start; align-items: flex-start; }
.gd .gd-tags span { font-size: 7.8pt; font-weight: 600; letter-spacing: .02em; color: var(--lav-deep); background: rgba(195,177,232,.22); border-radius: 999px; padding: 2px 8px; }
.gd .gd-link { display: grid; place-items: center; color: var(--sea-deep); }
.gd .gd-link svg { width: 22px; height: 22px; }
.gd .gd-theme { grid-column: 1 / -1; text-align: center; font: 600 7.6pt/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 2px 0 5px; }

/* Elements: a colored circle per sign */
/* Daniel 11/4: the sign circles look like the elements table (light tint, symbol in the element color) */
.gd .gd-fire .gd-num, .gd .gd-num.gd-fire { background: rgba(224,100,90,.16); color: #b5352c !important; box-shadow: inset 0 0 0 1.5px var(--fire); } .gd .gd-fire .gd-kind { color: #b5352c; }
.gd .gd-earth .gd-num, .gd .gd-num.gd-earth { background: rgba(143,174,107,.18); color: #5f7d3e !important; box-shadow: inset 0 0 0 1.5px var(--earth); } .gd .gd-earth .gd-kind { color: #5f7d3e; }
.gd .gd-air .gd-num, .gd .gd-num.gd-air { background: rgba(140,203,234,.24); color: #2878a6 !important; box-shadow: inset 0 0 0 1.5px var(--air); } .gd .gd-air .gd-kind { color: #2878a6; }
.gd .gd-water .gd-num, .gd .gd-num.gd-water { background: rgba(63,108,179,.17); color: #234f97 !important; box-shadow: inset 0 0 0 1.5px var(--water); } .gd .gd-water .gd-kind { color: #234f97; }

/* Closing box */
.gd .gd-moonbox { break-inside: avoid; margin: 0.12in 0 0.12in; background: var(--night-2); color: #e6ecf4; border-radius: 18px; padding: 15px 22px 12px; display: grid; grid-template-columns: 54px 1fr; gap: 18px; align-items: start; }
.gd .gd-moonbox h2 { color: #f2f5f9; font-size: 17pt; margin-bottom: 6px; }
.gd .gd-moonbox p { margin: 0 0 7px; color: #bfcbdb; font-size: 10.2pt; }
.gd .gd-moonbox p b { color: var(--sea); font-weight: 600; }

/* signs */
.gd-signs .gd-intro { margin-top: 0.22in; grid-template-columns: 1fr 2.05in; }
  .gd-signs .gd-quote { margin: 0.02in 0 0.1in; padding: 7px 18px; font-size: 12pt; }
  .gd-signs .gd-intro { margin-top: 0.18in; }
  .gd-signs .gd-em { display: grid; grid-template-columns: 1.55in 1fr 1fr 1fr; grid-auto-rows: minmax(0.38in, auto); gap: 4px; margin: 4px 0 0; }
  .gd-signs .gd-em-mode { background: var(--night-2); color: #f2f5f9; border-radius: 12px; padding: 6px 8px 5px; text-align: center; }
  .gd-signs .gd-em-mode b, .gd-signs .gd-em-el b { display: block; font: 400 13pt/1.1 var(--display); }
  .gd-signs .gd-em-mode span, .gd-signs .gd-em-el span { display: block; font-size: 7.9pt; line-height: 1.3; margin-top: 3px; }
  .gd-signs .gd-em-mode span { color: #bfcbdb; }
  .gd-signs .gd-em-el { border-radius: 12px; padding: 4px 10px; border-left: 4px solid; background: #f6f8fb; display: flex; flex-direction: column; justify-content: center; }
  .gd-signs .gd-em-el span { color: var(--soft); }
  .gd-signs .gd-em-el.gd-fire { border-color: var(--fire); } .gd-signs .gd-em-el.gd-earth { border-color: var(--earth); } .gd-signs .gd-em-el.gd-air { border-color: var(--air); } .gd-signs .gd-em-el.gd-water { border-color: var(--water); }
  .gd-signs .gd-em-el.gd-fire b { color: #b5352c; } .gd-signs .gd-em-el.gd-earth b { color: #5f7d3e; } .gd-signs .gd-em-el.gd-air b { color: #2878a6; } .gd-signs .gd-em-el.gd-water b { color: #234f97; }
  .gd-signs .gd-em-cell { border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; font: 400 12.5pt/1 var(--display); color: var(--night); }
  .gd-signs .gd-em-cell .gd-g { font-size: 15pt; }
  .gd-signs .gd-em-cell.gd-fire { background: rgba(224,100,90,.16); } .gd-signs .gd-em-cell.gd-fire .gd-g { color: #b5352c; }
  .gd-signs .gd-em-cell.gd-earth { background: rgba(143,174,107,.18); } .gd-signs .gd-em-cell.gd-earth .gd-g { color: #5f7d3e; }
  .gd-signs .gd-em-cell.gd-air { background: rgba(140,203,234,.24); } .gd-signs .gd-em-cell.gd-air .gd-g { color: #2878a6; }
  .gd-signs .gd-em-cell.gd-water { background: rgba(63,108,179,.17); } .gd-signs .gd-em-cell.gd-water .gd-g { color: #234f97; }
  .gd-signs .gd-em-note { font-size: 8.6pt; color: var(--muted); margin: 0 0 4px; }
  .gd-signs .gd-ladder { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; margin: 4px 0 8px; }
  .gd-signs .gd-ladder ol { list-style: none; margin: 0; padding: 0; }
  .gd-signs .gd-ladder { margin-top: 10px; }
  .gd-signs .gd-ladder li { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); }
  .gd-signs .gd-ladder .gd-num { grid-row: auto; width: 42px; height: 42px; font-size: 18pt; }
  .gd-signs .gd-ladder b { display: block; font: 400 14pt/1.15 var(--display); color: var(--night); margin-bottom: 2px; }
  .gd-signs .gd-ladder li span:not(.gd-num) { display: block; font-size: 10pt; line-height: 1.4; color: var(--soft); }
  .gd-signs .gd-card p { font-size: 9.1pt; line-height: 1.38; margin: 1px 0 4px; }
  .gd-signs .gd-pair .gd-card { padding: 8px 12px 6px; }
  .gd-signs .gd-tags { gap: 3px; }
  .gd-signs .gd-tags span { font-size: 7.1pt; padding: 1px 6px; }
  .gd-signs .gd-tags .gd-el { letter-spacing: .06em; }
  .gd-signs .gd-theme { margin: 1px 0 4px; }
  .gd-signs .gd-intro p:first-child { font-size: 11.5pt; }
  .gd-signs .gd-tags .gd-el { color: #fff; text-transform: uppercase; letter-spacing: .1em; font-size: 7pt; }
  .gd-signs .gd-fire .gd-tags .gd-el { background: #b5352c; } .gd-signs .gd-earth .gd-tags .gd-el { background: #5f7d3e; } .gd-signs .gd-air .gd-tags .gd-el { background: #2878a6; } .gd-signs .gd-water .gd-tags .gd-el { background: #234f97; }
  .gd-signs .gd-pair { margin-bottom: 4px; }

/* planets */
.gd-planets .gd-intro { margin-top: 0.22in; grid-template-columns: 1fr 2.05in; }
  .gd-planets .gd-intro p { margin-bottom: 7px; }
  .gd-planets .gd-quote { margin: 0.06in 0 0.16in; padding: 10px 18px; font-size: 12.5pt; }
  .gd-planets .gd-grid2 { gap: 6px 10px; }
  .gd-planets .gd-card { padding: 8px 12px 7px; }
  .gd-planets .gd-card p { margin: 1px 0 4px; line-height: 1.4; }
  .gd-planets .gd-lead { margin-bottom: 10px; }
  .gd-planets .gd-moonbox { padding: 12px 20px 8px; }
  .gd-planets .gd-card .gd-num.gd-g { font-size: 18pt; }
  .gd-planets .gd-card .gd-num.gd-small-text { font: 700 10.5pt/1 var(--body); letter-spacing: .06em; }

/* ---- screen (the web pages): written by hand, kept by tools/guides_split.py ---- */
/* The guide on a white sheet, on the site's night sky */
.guide-section { padding-top: 28px; }
.guide-section .gd-card[id] { scroll-margin-top: 96px; } /* a link to one sign or Node (The Big Picture) lands below the menu */
.guide-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 18px; }
.guide-tabs a { padding: 8px 18px; border-radius: 999px; border: 1px solid rgba(169, 214, 255, 0.35); color: var(--soft); text-decoration: none; font-weight: 600; }
.guide-tabs a:hover { color: var(--ink); border-color: var(--accent); }
.guide-tabs a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.guide-free { text-align: center; color: var(--soft); margin: 0 0 14px; }
.guide-buttons { margin-bottom: 28px; }
.gd.gd-sheet { max-width: 8.5in; margin: 0 auto; padding: 0.15in 0 0.35in; border-radius: 22px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35); overflow: hidden; text-align: left; }
.gd.gd-sheet .gd-page-break { break-before: auto; margin-top: 0.35in; }
.gd.gd-sheet h2 { line-height: 1.15; text-align: left; }
.gd.gd-sheet { --muted: #5f6c82; } /* darker than print, for contrast on screen */
.gd .gd-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media print { .gd .gd-sr { display: none; } }
@media (min-width: 1000px) { .gd.gd-sheet { zoom: 1.15; } } /* print sizes read small on a big screen */
@media (max-width: 999px) {
  /* tablets and phones: no smaller than this */
  .gd.gd-sheet .gd-card p { font-size: max(13px, 1em); }
  .gd.gd-sheet .gd-tags span, .gd.gd-sheet .gd-theme, .gd.gd-sheet .gd-card .gd-kind { font-size: 11px; }
  .gd.gd-sheet .gd-wheel figcaption, .gd.gd-sheet .gd-em-note, .gd.gd-sheet .gd-em-mode span, .gd.gd-sheet .gd-em-el span { font-size: 12px; }
}

@media (max-width: 760px) {
  .gd.gd-sheet { border-radius: 16px; font-size: 15px; }
  .gd.gd-sheet .gd-wrap { padding: 0 18px; }
  .gd.gd-sheet .gd-intro { grid-template-columns: 1fr; gap: 14px; }
  .gd.gd-sheet .gd-wheel { max-width: 240px; margin: 0 auto; }
  .gd.gd-sheet .gd-grid2, .gd.gd-sheet .gd-ladder { grid-template-columns: 1fr; }
  .gd.gd-sheet .gd-pair { grid-template-columns: 1fr; gap: 0; }
  .gd.gd-sheet .gd-link { height: 26px; }
  .gd.gd-sheet .gd-link svg { transform: rotate(90deg); }
  /* the elements-and-modes table stacks: the 3 modes on top, then each element on its own line above its 3 signs */
  .gd.gd-sheet .gd-em { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .gd.gd-sheet .gd-em-corner { display: none; }
  .gd.gd-sheet .gd-em-el { grid-column: 1 / -1; flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 0 10px; padding: 6px 10px; margin-top: 6px; }
  .gd.gd-sheet .gd-em-el span { margin-top: 0; }
  .gd.gd-sheet .gd-em-cell { min-width: 0; flex-direction: column; gap: 2px; font-size: clamp(11px, 3.6vw, 14px); padding: 7px 2px; text-align: center; }
  .gd.gd-sheet .gd-em-mode { padding: 7px 4px 6px; }
  .gd.gd-sheet .gd-em-mode b, .gd.gd-sheet .gd-em-el b { font-size: 15px; }
  .gd.gd-sheet .gd-em-mode span { font-size: 11px; }
  .gd.gd-sheet .gd-card p { font-size: 14px; }
  .gd.gd-sheet .gd-tags span { font-size: 12px; }
  .gd.gd-sheet .gd-moonbox { grid-template-columns: 1fr; gap: 8px; }
  .gd.gd-sheet .gd-moonbox > svg { width: 44px; height: 44px; }
}
