/*
 * Pashupatinath Spiritual Suite - shared base (tokens + primitives only).
 * Inherits the theme's design tokens (--ivory, --maroon, --gold, ...) when the
 * theme defines them, with the same values as fallbacks so tools match the
 * theme even if its variables are absent. No tool UI lives here.
 */
.pss-tool{
  --pss-primary:var(--maroon,#3B1F1A);
  --pss-secondary:var(--gold,#B8923E);
  --pss-ivory:var(--ivory,#F4EEE2);
  --pss-ivory-deep:var(--ivory-deep,#ECE2CE);
  --pss-gold:var(--gold,#B8923E);
  --pss-gold-bright:var(--gold-bright,#D8B564);
  --pss-saffron:var(--saffron,#A6431C);
  --pss-maroon:var(--maroon,#3B1F1A);
  --pss-charcoal:var(--charcoal,#201A16);
  --pss-white:var(--white,#FFFDF8);
  --pss-line:var(--line,rgba(59,31,26,.14));
  --pss-shadow:var(--shadow-soft,0 20px 60px rgba(32,26,22,.18));
  --pss-ease:var(--ease,cubic-bezier(.22,.61,.36,1));
  --pss-font-body:'Manrope',system-ui,sans-serif;
  --pss-font-display:'Fraunces',Georgia,serif;
  box-sizing:border-box;
  font-family:var(--pss-font-body);
  color:var(--pss-charcoal);
  line-height:1.6;
}
.pss-tool *,.pss-tool *::before,.pss-tool *::after{box-sizing:inherit}

/* Pill button, same language as the theme's .btn / .btn-primary */
.pss-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  min-height:48px;padding:13px 26px;border-radius:100px;border:0;cursor:pointer;
  font:700 .92rem/1 'Manrope',system-ui,sans-serif;
  background:var(--pss-secondary,var(--gold,#B8923E));color:var(--charcoal,#201A16);
  transition:transform .35s var(--ease,ease),background .35s var(--ease,ease),box-shadow .35s var(--ease,ease);
}
.pss-btn:hover{filter:brightness(1.1);transform:translateY(-2px)}
.pss-btn--ghost{background:transparent;color:inherit;border:1.4px solid currentColor}
.pss-btn--ghost:hover{background:rgba(255,253,248,.12);filter:none}
.pss-tool [hidden]{display:none!important}
.pss-btn:focus-visible{outline:2px solid var(--gold,#B8923E);outline-offset:3px}
.pss-btn[disabled]{opacity:.5;cursor:not-allowed;transform:none}

/* Editor-only notice for unknown/disabled tool IDs */
.pss-notice{padding:10px 14px;border-left:3px solid var(--saffron,#A6431C);background:#fbeaea;color:#8a1f1f;font-size:.9rem}

.pss-sr-only{
  position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0,0,0,0);white-space:nowrap;border:0;
}

@media (prefers-reduced-motion:reduce){
  .pss-tool,.pss-tool *,.pss-tool *::before,.pss-tool *::after{
    animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important;
  }
}
