/* EAS Astrological Tools 1.0.0 — visitor styling.
   CSS is scoped to the workspace. Site-level Kadence typography stays in control. */
.eas-tools {
  --eas-ink: #3B3625;
  --eas-muted: #5D4E2D;
  --eas-paper: #FFFDFB;
  --eas-dark: #3B3625;
  --eas-light: #FEF8EA;
  --eas-accent: #C45911;
  --eas-accent-hover: #873E0D;
  color: var(--eas-ink);
  background: transparent;
  padding: 1.375rem 1.5rem 1.8125rem;
  box-sizing: border-box;
  min-width: 0;
}
.eas-tools *, .eas-tools *::before, .eas-tools *::after { box-sizing: border-box; }
/* Shared return link, outside the optional title/quote header. */
.eas-tools a.eas-tools__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  max-width: 100%;
  margin: 0 0 0.75rem;
  color: var(--eas-accent-hover);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
}
.eas-tools a.eas-tools__back:hover { color: var(--eas-accent); text-decoration: underline; }
.eas-tools a.eas-tools__back:focus-visible { outline: 2px solid var(--eas-accent); outline-offset: 3px; }
.eas-tools__back-arrow { flex: 0 0 auto; }
.eas-tools__header { padding: 0.25rem 0 1.0625rem; }
.eas-tools__title { margin: 0; color: #0A0A0A; }
/* Only appears after another tool has been added to the catalog. */
.eas-tools__tool-picker:empty { display: none; }
.eas-tools__tool-picker:not(:empty) { max-width: 26rem; margin-bottom: 1rem; }
.eas-tools__tool-picker .eas-tools__label { display: block; color: var(--eas-ink); margin-bottom: 0.35rem; }
.eas-tools__tool-picker .eas-tools__select { width: 100%; padding: 0.65rem; border: 1px solid rgba(212,175,55,.3); border-radius: 8px; background: #FFFDFB; color: var(--eas-ink); font: inherit; }

/* Proper buttons, not anchor-styled navigation. */
.eas-tools__tabs {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  overflow-x: auto;
  padding: 0 0 0.85rem;
  margin: 0 0 1.375rem;
  -webkit-overflow-scrolling: touch;
}
.eas-tools__tab {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  white-space: nowrap;
  border: 1px solid rgba(212,175,55,.3);
  border-radius: 8px;
  background: var(--eas-paper);
  color: var(--eas-ink);
  padding: 0.625rem 0.875rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.eas-tools__tab:hover { background: var(--eas-light); border-color: var(--eas-accent); color: var(--eas-accent-hover); }
.eas-tools__tab.is-active,
.eas-tools__tab[aria-selected="true"] { background: var(--eas-accent-hover); color: var(--eas-paper); border-color: var(--eas-accent-hover); }
.eas-tools__tab:focus-visible,
.eas-tools__section-button:focus-visible,
.eas-tools__reset:focus-visible,
.eas-tools__select:focus-visible { outline: 2px solid var(--eas-accent); outline-offset: 2px; }

.eas-tools__layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(15rem, 3fr);
  gap: 1.1875rem;
  align-items: start;
}
.eas-tools__results, .eas-tools__sidebar {
  min-width: 0;
  padding: 2.5rem;
  border: 1px solid rgba(212,175,55,.3);
  border-radius: 8px;
}
.eas-tools__results {
  background: var(--eas-paper);
  min-height: 18.75rem;
  overflow-wrap: anywhere;
}
.eas-tools__sidebar {
  background: var(--eas-dark);
  color: var(--eas-light);
  position: sticky;
  top: calc(1rem + 10px);
}
.eas-tools__sidebar-title {
  color: var(--eas-light);
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  line-height: 1.4;
  font-weight: 700;
}
.eas-tools__sidebar-subtitle { color: var(--eas-light); margin: 0 0 1rem; font-size: 0.875rem; }
.eas-tools__sidebar-subtitle:empty { display: none; }
.eas-tools__fields > * + * { margin-top: 1rem; }
.eas-tools__field { margin-top: 0.9375rem; }
.eas-tools__label { display: block; color: var(--eas-light); font-size: 0.875rem; font-weight: 600; margin-bottom: 0.375rem; }
.eas-tools__sidebar select.eas-tools__select {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0.6875rem 0.75rem;
  border: 1px solid #D9CDBE;
  border-radius: 8px;
  background: var(--eas-paper);
  color: var(--eas-ink);
  font: inherit;
  font-size: 0.875rem;
  line-height: 1.4;
}
.eas-tools__sidebar select.eas-tools__select:hover { border-color: #B5632F; }
.eas-tools__reset {
  appearance: none;
  display: block;
  width: 100%;
  border: 1px solid #FEF8EA;
  border-radius: 8px;
  color: #3B3625;
  background: #FEF8EA;
  padding: 0.6875rem 0.75rem;
  margin-top: 1rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
}
.eas-tools__reset:hover { background: #F8D7BE; border-color: #F8D7BE; color: #3B3625; }
.eas-tools__section-nav { display: grid; gap: 0.5rem; margin-top: 1rem; }
.eas-tools__section-button {
  appearance: none;
  width: 100%;
  padding: 0.625rem 0.6875rem;
  border: 1px solid #FEF8EA;
  border-radius: 8px;
  background: #FEF8EA;
  color: #3B3625;
  font: inherit;
  font-size: 0.875rem;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}
.eas-tools__section-button:hover { background: #F8D7BE; border-color: #F8D7BE; color: #3B3625; }
.eas-tools__section-button.is-active,
.eas-tools__section-button[aria-pressed="true"] { background: #873E0D; color: #FFFDFB; border-color: #FFFDFB; font-weight: 700; }
.eas-tools__section-button.is-active:hover,
.eas-tools__section-button[aria-pressed="true"]:hover { background: #873E0D; color: #FFFDFB; }

/* Word-derived body and its supplementary passages. */
.eas-tools__content { line-height: 1.8; }
.eas-tools__content h3 { color: #0A0A0A; line-height: 1.35; margin: 0 0 1.0625rem; }
.eas-tools__content p { margin: 0 0 1rem; }
.eas-tools__content p:last-child { margin-bottom: 0; }
.eas-tools__content strong, .eas-tools__content b { color: var(--eas-accent-hover); }
.eas-tools__content a { color: var(--eas-accent); }
.eas-tools__content a:hover { color: var(--eas-accent-hover); }
.eas-tools__content img { display: block; max-width: 100%; height: auto; }
.eas-tools__supp { border-top: 1px solid rgba(212,175,55,.3); margin-top: 1.375rem; padding-top: 1.375rem; }
.eas-tools__supp--before { border-top: 0; border-bottom: 1px solid rgba(212,175,55,.3); margin: 0 0 1.375rem; padding: 0 0 1.375rem; }
.eas-tools__supp-label { color: var(--eas-accent-hover); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.6rem; }
.eas-tools__message { margin: 0; color: var(--eas-muted); }

/* Tablet landscape: one shared layout for touch tablets of every width.
   The 768–1024px fallback also covers narrow desktop windows / fine pointers. */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape),
       (min-width: 768px) and (orientation: landscape) and (pointer: coarse) {
  .eas-tools { padding-inline: 1rem; }
  .eas-tools__layout {
    grid-template-columns: minmax(0, 7fr) minmax(18rem, 3fr);
  }
  .eas-tools__results, .eas-tools__sidebar { padding: 1.5rem; }
}
/* Tablet portrait: controls above the reading, wrapping to fit the workspace.
   The 768–1024px fallback also covers narrow desktop windows / fine pointers. */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait),
       (min-width: 768px) and (orientation: portrait) and (pointer: coarse) {
  .eas-tools { padding-inline: 1rem; }
  .eas-tools__layout { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .eas-tools__sidebar { order: -1; position: static; }
  .eas-tools__results, .eas-tools__sidebar { padding: 1.5rem; }
  .eas-tools__fields { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem 1rem; }
  .eas-tools__fields > .eas-tools__field { flex: 1 1 14rem; min-width: 0; margin-top: 0; }
  .eas-tools__sidebar select.eas-tools__select { min-height: 46px; font-size: 1rem; }
  .eas-tools__section-nav {
    flex: 1 1 100%; min-width: 0;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  }
}
@media (max-width: 767px) {
  .eas-tools { padding: 0.8125rem 0.75rem 1.1875rem; }
  .eas-tools__header { padding: 0.125rem 0 0.8125rem; }
  .eas-tools__tabs { margin-bottom: 0.8125rem; }
  .eas-tools__layout { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
  .eas-tools__sidebar { order: -1; position: static; }
  .eas-tools__results, .eas-tools__sidebar { padding: 1.3rem; }
  .eas-tools__sidebar select.eas-tools__select { min-height: 46px; font-size: 1rem; }
  .eas-tools__tab { font-size: 0.83rem; }
}
@media (max-width: 767px) {
  /* Keep every button visible on narrow screens, including long view titles. */
  .eas-tools__tabs { flex-wrap: wrap; overflow: visible; }
  .eas-tools__tab { max-width: 100%; white-space: normal; text-align: center; }
}
/* EAS shared content tones and control states. */
.eas-tools {--eas-prefix:#FEF8EA;--eas-suffix:#FDF3E5;--eas-extra:#FCEDE0;--eas-gold:#D4AF37;}
.eas-tools [hidden]{display:none!important}
.eas-tools__header:has(> :is(.eas-tools__title,.eas-tools__quote):not([hidden])){padding-bottom:1rem}
.eas-tools__header:has(> .eas-tools__title[hidden]):has(> .eas-tools__quote[hidden]){display:none}
.eas-tools__quote {text-align:center;margin:0 0 calc(.5rem + 20px);color:var(--eas-accent-hover);font-style:italic;}
.eas-tools__quote p{margin:.25rem 0;text-align:center;}
.eas-tools__quote span{color:var(--eas-accent-hover)!important}
.eas-tools__results {background:#FFFDFB;border-color:#E7DFD4;}
.eas-tools__sidebar {border-radius:16px;}
.eas-tools__section-button {background:#3B3625;color:#FEF8EA;border-color:#998B72;font-weight:600;}
.eas-tools__section-button:hover {background:#564D3C;color:#FEF8EA;border-color:#998B72;}
.eas-tools__section-button.is-active,.eas-tools__section-button[aria-pressed=true],.eas-tools__section-button.is-active:hover,.eas-tools__section-button[aria-pressed=true]:hover {background:#FEF8EA;color:#3B3625;border-color:#FEF8EA;}
.eas-tools__reset {background:#3B3625;color:#FEF8EA;border-color:#F8D7BE;}
.eas-tools__reset:hover {background:#564D3C;color:#FEF8EA;border-color:#F8D7BE;}
.eas-tools__tab {background:#D4AF37;color:#0A0A0A;border-color:#D4AF37;}
.eas-tools__tab:hover,.eas-tools__tab.is-active,.eas-tools__tab[aria-selected=true] {background:#873E0D;color:#FFFDFB;border-color:#873E0D;}
.eas-tools__content{text-align:left;}
.eas-tools__content h3{font-size:1.688rem;line-height:1.4;text-align:left;}
.eas-tools__content h4{margin:1.4rem 0 .5rem;color:#0A0A0A;}
.eas-tools__content h5{margin:1rem 0 .4rem;color:#0A0A0A;}
.eas-tools__content strong,.eas-tools__content b{color:inherit;}
.eas-tools__content .eas-tools__symbol{font-weight:500;margin:0 0 1rem;}
.eas-tools__content .eas-tools__zodiac{display:block;width:80px;height:80px;object-fit:contain;margin:0 0 .75rem 0;}
.eas-tools__supp {border:1px solid #DFCBB2;background:var(--eas-suffix);border-radius:8px;margin:1.375rem 0 0;padding:1.25rem;}
.eas-tools__supp--before {background:var(--eas-prefix);border-color:#E2D5BF;margin:0 0 1.375rem;}
.eas-tools__supp--attachment {background:var(--eas-extra);border-color:#DEC3AA;}
.eas-tools__supp--attachment article+article{margin-top:1rem;}
.eas-tools__supp h3{font-size:1.25rem;}
.eas-tools__content li{margin-bottom:.4rem;}
.eas-tools__cta {background:#D4AF37;color:#0A0A0A;border-radius:8px;}
.eas-tools__cta:hover{background:#873E0D;color:#FFFDFB;}
@media(max-width:767px){.eas-tools__content h3{font-size:1.4rem;}.eas-tools__supp{padding:1rem;}}
.eas-tools__quote{font-style:normal;}
.eas-tools__content .eas-tools__word-emphasis {color:#873E0D!important;}

/* Free-flowing lookup readings and warm callout panels. */
.eas-tools__title { text-align: left; margin: 0; }
.eas-tools__header:has(.eas-tools__quote:not([hidden])) .eas-tools__title { margin-bottom: 1.25rem; }
.eas-tools__results.eas-tools__results--flat {
  border: 0; border-radius: 0; padding: 0; background: var(--eas-paper);
}
.eas-tools__content .eas-tools__symbol { font-size: 1.15em; line-height: 1.5; }
.eas-tools__supp {
  border: 1px solid rgba(212,175,55,.55);
  border-left: 4px solid #B5632F;
  border-radius: 8px;
  background: #FDF3E5;
  color: var(--eas-ink);
}
.eas-tools__supp--before { background: #FEF8EA; }
.eas-tools__supp--attachment { background: #FCEFE3; }

/* Uniform bold small capitals, including Greek final sigma.
   Explicit capitals at one size avoid mixed native/synthesized glyph weights. */
.eas-tools__content .eas-tools__symbol,
.eas-tools__content .eas-tools__symbol * {
  font-family: Aptos, Calibri, Carlito, Arial, sans-serif !important;
  font-variant: normal !important;
  text-transform: none !important;
  font-weight: 700 !important;
  font-synthesis: weight style;
}
.eas-tools__content .eas-tools__symbol .eas-tools__small-cap-run {
  font-size: 0.75em !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  font-variant: normal !important;
}

/* Gentle, uniform tracking across all planetary symbolism glyphs. */
.eas-tools__content .eas-tools__symbol { letter-spacing: 0.035em !important; }
.eas-tools__content .eas-tools__symbol * { letter-spacing: inherit !important; }
