/* GigMoneyCalc — Morph layer (progressive enhancement only).
   The site works exactly as before with this file missing or JS off. */

/* ---------- Question router (homepage) ---------- */
.gmc-router {
  margin: 26px 0 6px;
  padding: clamp(20px, 3.5vw, 32px);
  background: var(--surface, #fff);
  border: 1px solid var(--line, #d6ddd3);
  border-radius: var(--radius-lg, 24px);
  box-shadow: var(--shadow, 0 18px 42px rgba(35,51,39,.09));
}
.gmc-router h2 {
  font-family: "Newsreader", Georgia, serif;
  letter-spacing: -.03em;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.08;
  margin: 0 0 6px;
}
.gmc-router .gmc-router-sub { color: var(--muted, #5c675f); margin: 0 0 18px; max-width: 56ch; }
.gmc-router-row { display: flex; gap: 10px; flex-wrap: wrap; }
.gmc-router-q {
  flex: 1 1 300px;
  padding: 14px 16px;
  border: 1.5px solid var(--line, #d6ddd3);
  border-radius: var(--radius-md, 16px);
  background: var(--bg, #f5f7f2);
  color: var(--ink, #152019);
  font: inherit;
}
.gmc-router-q:focus { border-color: var(--accent, #087a52); outline: 3px solid var(--focus, #ffb000); outline-offset: 1px; }
.gmc-router-amt { flex: 0 1 170px; position: relative; }
.gmc-router-amt input {
  width: 100%;
  padding: 14px 16px 14px 28px;
  border: 1.5px solid var(--line, #d6ddd3);
  border-radius: var(--radius-md, 16px);
  background: var(--bg, #f5f7f2);
  color: var(--ink, #152019);
  font: inherit;
}
.gmc-router-amt span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted, #5c675f); font-weight: 600; }
.gmc-router-go {
  border: 0; cursor: pointer;
  padding: 14px 22px;
  border-radius: var(--radius-md, 16px);
  background: var(--accent, #087a52); color: #fff;
  font-weight: 700; font-size: 16px;
}
.gmc-router-go:hover { background: var(--accent-strong, #075f42); }
.gmc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.gmc-chip {
  border: 1px solid var(--line, #d6ddd3);
  background: var(--surface-2, #edf1ea);
  color: var(--ink, #152019);
  border-radius: 999px;
  padding: 9px 15px;
  font: inherit; font-size: 14.5px; font-weight: 600;
  cursor: pointer;
}
.gmc-chip:hover { border-color: var(--accent, #087a52); background: var(--accent-soft, #dff4e9); }
.gmc-router-fieldwrap { position: relative; }
.gmc-suggest {
  position: absolute;
  left: 0; right: 0;
  top: calc(100% + 8px);
  z-index: 80;
  border: 1px solid var(--line, #d6ddd3);
  border-radius: var(--radius-md, 16px);
  background: var(--surface, #fff);
  overflow: hidden;
  box-shadow: 0 16px 38px rgba(10, 26, 18, 0.20);
}
.gmc-suggest[hidden] { display: none; }
.gmc-suggest button {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  width: 100%; text-align: left;
  padding: 12px 16px; border: 0; background: none; cursor: pointer; font: inherit;
  color: var(--ink, #152019);
}
.gmc-suggest button + button { border-top: 1px solid var(--line, #d6ddd3); }
.gmc-suggest button:hover, .gmc-suggest button.gmc-active { background: var(--accent-soft, #dff4e9); }
.gmc-suggest small { color: var(--muted, #5c675f); }
.gmc-suggest .gmc-arrow { color: var(--accent, #087a52); font-weight: 800; }

/* ---------- Morph overlay ---------- */
#gmcMorph {
  position: fixed; inset: 0; z-index: 99990;
  background: #07182e;
  opacity: 0; pointer-events: none;
  overflow: hidden;
}
#gmcMorph.on { pointer-events: auto; }
#gmcMorphCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#gmcMorphCard {
  position: absolute; left: 0; top: 0;
  width: min(430px, calc(100vw - 40px));
  background: #0d2b4d;
  border: 2px solid #2fbf71;
  border-radius: 16px;
  color: #eaf2fb;
  padding: 16px 20px 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
  will-change: transform, opacity;
}
#gmcMorphCard .gmc-mc-brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 14px; letter-spacing: .2px; color: #8fb0d1; }
#gmcMorphCard .gmc-mc-logo {
  width: 26px; height: 26px; border: 2px solid #2fbf71; border-radius: 7px;
  color: #2fbf71; font-weight: 800; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
#gmcMorphCard .gmc-mc-title { font-size: 23px; font-weight: 800; line-height: 1.15; margin-top: 10px; }
#gmcMorphCard .gmc-mc-amt { font-size: 15px; color: #f5b942; font-weight: 700; margin-top: 5px; }
#gmcMorphCard .gmc-mc-amt:empty { display: none; }
#gmcMorphWord {
  position: absolute; left: 0; right: 0; bottom: 26px;
  text-align: center; color: #8fb0d1; font-size: 14.5px; letter-spacing: .4px;
}
#gmcMorphWord b { color: #eaf2fb; }

@media (prefers-reduced-motion: reduce) {
  #gmcMorph { display: none !important; }
}
