

/* ===== PERSONAL RESULTS ===== */
#ishaura-personal-codex-guide,
#ishaura-personal-codex-guide *,
#ishaura-personal-codex-guide *::before,
#ishaura-personal-codex-guide *::after{box-sizing:border-box}

#ishaura-personal-codex-guide{
  --bg:#08060d;--panel:#15101f;--panel2:#1c1528;--text:#f7f0fb;
  --muted:#c8bdd0;--soft:#9f93aa;--line:#49385a;--gold:#e2c587;
  --violet:#ae86d8;--cyan:#83cce4;--green:#a7d39c;--rose:#d6a0ad;
  --shadow:0 26px 70px rgba(0,0,0,.35);

  position:relative;overflow:hidden;width:100%;padding:22px 14px;
  color:var(--text)!important;color-scheme:dark;
  background:
    radial-gradient(circle at 14% 0,rgba(174,134,216,.14),transparent 28%),
    radial-gradient(circle at 90% 100%,rgba(131,204,228,.06),transparent 30%),
    linear-gradient(180deg,#08060d,#100b17)!important;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  line-height:1.55;
}
#ishaura-personal-codex-guide::before{
  content:"";position:absolute;inset:0;pointer-events:none;opacity:.11;
  background-image:
    radial-gradient(circle,rgba(255,255,255,.65) 0 1px,transparent 1.4px),
    radial-gradient(circle,rgba(174,134,216,.40) 0 1px,transparent 1.4px);
  background-size:121px 121px,191px 191px;
}
#ishaura-personal-codex-guide .pcg-shell{
  position:relative;z-index:2;width:min(1180px,100%);margin:auto;
  padding:clamp(20px,4vw,32px);
  border:1px solid rgba(226,197,135,.30);border-radius:26px;
  background:
    radial-gradient(circle at 88% 10%,rgba(174,134,216,.10),transparent 30%),
    linear-gradient(145deg,rgba(21,16,31,.96),rgba(10,8,16,.97))!important;
  box-shadow:var(--shadow);
}
#ishaura-personal-codex-guide .pcg-top{
  display:flex;justify-content:space-between;gap:18px;align-items:flex-start;flex-wrap:wrap
}
#ishaura-personal-codex-guide .pcg-kicker{
  color:var(--gold)!important;font-size:.68rem;font-weight:900;letter-spacing:.13em;text-transform:uppercase
}
#ishaura-personal-codex-guide h2,#ishaura-personal-codex-guide h3{font-family:Georgia,"Times New Roman",serif}
#ishaura-personal-codex-guide h2{
  margin:6px 0;color:var(--text)!important;font-size:clamp(2rem,4vw,3.15rem);
  line-height:1.05;font-weight:500
}
#ishaura-personal-codex-guide .pcg-intro{
  max-width:790px;margin:0;color:var(--muted)!important;font-size:.96rem;line-height:1.65
}
#ishaura-personal-codex-guide .pcg-record{
  display:flex;align-items:center;gap:7px;padding:7px 10px;
  border:1px solid rgba(167,211,156,.25);border-radius:999px;
  color:#ccefc5!important;background:rgba(167,211,156,.055);
  font-size:.65rem;font-weight:900;letter-spacing:.06em;text-transform:uppercase
}
#ishaura-personal-codex-guide .pcg-record::before{
  content:"";width:7px;height:7px;border-radius:50%;background:var(--green);
  box-shadow:0 0 11px rgba(167,211,156,.48)
}
#ishaura-personal-codex-guide .pcg-state{
  margin-top:20px;padding:18px;border:1px dashed var(--line);border-radius:16px;
  color:var(--muted)!important;background:rgba(255,255,255,.025)
}
#ishaura-personal-codex-guide .pcg-state[hidden],
#ishaura-personal-codex-guide .pcg-results[hidden]{display:none!important}
#ishaura-personal-codex-guide .pcg-state strong{
  display:block;margin-bottom:4px;color:var(--text)!important
}
#ishaura-personal-codex-guide .pcg-start{
  margin:22px 0 14px;padding:16px 18px;border-left:4px solid var(--gold);
  border-radius:0 15px 15px 0;
  background:linear-gradient(90deg,rgba(226,197,135,.09),rgba(174,134,216,.035))
}
#ishaura-personal-codex-guide .pcg-start b{
  display:block;color:var(--gold)!important;font-size:.68rem;font-weight:900;
  letter-spacing:.10em;text-transform:uppercase
}
#ishaura-personal-codex-guide .pcg-start p{margin:5px 0 0;color:var(--muted)!important}
#ishaura-personal-codex-guide .pcg-path{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px
}
#ishaura-personal-codex-guide .pcg-card{
  appearance:none;width:100%;min-height:170px;display:flex;flex-direction:column;
  align-items:flex-start;padding:15px;border:1px solid var(--line);
  border-top:2px solid var(--accent,var(--violet));border-radius:16px;
  color:var(--text)!important;text-align:left;
  background:
    radial-gradient(circle at 90% 0,color-mix(in srgb,var(--accent,var(--violet)) 10%,transparent),transparent 35%),
    var(--panel2)!important;
  cursor:pointer;transition:transform .18s ease,border-color .18s ease
}
#ishaura-personal-codex-guide .pcg-card:hover{transform:translateY(-3px);border-color:var(--accent,var(--violet))}
#ishaura-personal-codex-guide .pcg-card-role{
  color:var(--accent,var(--violet))!important;font-size:.62rem;font-weight:900;
  letter-spacing:.10em;text-transform:uppercase
}
#ishaura-personal-codex-guide .pcg-card h3{
  margin:8px 0 5px;color:var(--text)!important;font-size:1.18rem;line-height:1.15
}
#ishaura-personal-codex-guide .pcg-card p{
  margin:0 0 12px;color:var(--muted)!important;font-size:.82rem;line-height:1.48
}
#ishaura-personal-codex-guide .pcg-open{
  margin-top:auto;color:var(--gold)!important;font-size:.68rem;font-weight:900
}
#ishaura-personal-codex-guide .pcg-context{
  display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:10px;margin-top:12px
}
#ishaura-personal-codex-guide .pcg-info{
  padding:15px;border:1px solid var(--line);border-radius:15px;background:rgba(255,255,255,.025)
}
#ishaura-personal-codex-guide .pcg-info span{
  display:block;color:var(--soft)!important;font-size:.62rem;font-weight:900;
  letter-spacing:.10em;text-transform:uppercase
}
#ishaura-personal-codex-guide .pcg-info strong{
  display:block;margin-top:5px;color:var(--text)!important;
  font-family:Georgia,"Times New Roman",serif;font-size:1.05rem
}
#ishaura-personal-codex-guide .pcg-info p{
  margin:5px 0 0;color:var(--muted)!important;font-size:.79rem;line-height:1.45
}
#ishaura-personal-codex-guide .pcg-note{
  margin:15px 0 0;color:var(--soft)!important;font-size:.75rem;line-height:1.5
}
#ishaura-personal-codex-guide .pcg-small{
  display:inline-block;margin-top:7px;color:var(--soft)!important;font-size:.72rem
}

/* LIGHT */
#ishaura-personal-codex-guide.pcg-site-light{
  --bg:#f7f9fc;--panel:#fff;--panel2:#f7f9fc;--text:#111827;
  --muted:#435066;--soft:#667287;--line:rgba(55,65,94,.15);
  --gold:#745700;--violet:#60408f;--cyan:#0b6689;--green:#166534;--rose:#8f3148;
  --shadow:0 18px 46px rgba(48,59,91,.09);
  color:#111827!important;color-scheme:light;
  background:
    radial-gradient(circle at 14% 0,rgba(96,64,143,.07),transparent 28%),
    linear-gradient(180deg,#f8fbfe,#eef3f8)!important;
}
#ishaura-personal-codex-guide.pcg-site-light::before{
  opacity:.05;
  background-image:
    radial-gradient(circle,rgba(15,23,42,.36) 0 1px,transparent 1.4px),
    radial-gradient(circle,rgba(96,64,143,.22) 0 1px,transparent 1.4px)
}
#ishaura-personal-codex-guide.pcg-site-light .pcg-shell{
  background:#fff!important;border-color:rgba(116,87,0,.18);box-shadow:var(--shadow)
}
#ishaura-personal-codex-guide.pcg-site-light h2,
#ishaura-personal-codex-guide.pcg-site-light .pcg-card h3,
#ishaura-personal-codex-guide.pcg-site-light .pcg-info strong,
#ishaura-personal-codex-guide.pcg-site-light .pcg-state strong{color:#111827!important}
#ishaura-personal-codex-guide.pcg-site-light .pcg-intro,
#ishaura-personal-codex-guide.pcg-site-light .pcg-start p,
#ishaura-personal-codex-guide.pcg-site-light .pcg-card p,
#ishaura-personal-codex-guide.pcg-site-light .pcg-info p,
#ishaura-personal-codex-guide.pcg-site-light .pcg-state{color:#435066!important}
#ishaura-personal-codex-guide.pcg-site-light .pcg-record{
  color:#14532d!important;background:#effaf2;border-color:rgba(22,101,52,.20)
}
#ishaura-personal-codex-guide.pcg-site-light .pcg-card,
#ishaura-personal-codex-guide.pcg-site-light .pcg-info,
#ishaura-personal-codex-guide.pcg-site-light .pcg-state{
  background:#f8fafc!important;border-color:rgba(55,65,94,.13)
}
#ishaura-personal-codex-guide.pcg-site-light .pcg-card{border-top-color:var(--accent,var(--violet))}
#ishaura-personal-codex-guide.pcg-site-light .pcg-start{
  background:linear-gradient(90deg,#fff8dd,#f7f1ff)!important
}

@media(max-width:920px){#ishaura-personal-codex-guide .pcg-path{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){#ishaura-personal-codex-guide .pcg-context{grid-template-columns:1fr}}
@media(max-width:620px){
  #ishaura-personal-codex-guide{padding:14px 10px}
  #ishaura-personal-codex-guide .pcg-path{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
  #ishaura-personal-codex-guide *,
  #ishaura-personal-codex-guide *::before,
  #ishaura-personal-codex-guide *::after{transition-duration:.001ms!important;animation-duration:.001ms!important}
}

/* ===== LIBRARY / CODEX ===== */
#ishaura-realm-archetype-codex,
#ishaura-realm-archetype-codex *,
#ishaura-realm-archetype-codex *::before,
#ishaura-realm-archetype-codex *::after{box-sizing:border-box}

#ishaura-realm-archetype-codex{
  --bg:#09070e;
  --panel:#14101d;
  --panel2:#1b1426;
  --panel3:#231a31;
  --line:#49385c;
  --text:#f6effc;
  --muted:#c3b7cc;
  --soft:#9d8fa9;
  --gold:#e2c587;
  --violet:#aa83d1;
  --cyan:#86cce4;
  --green:#a7d39c;
  --danger:#d59aa5;
  --shadow:0 25px 80px rgba(0,0,0,.45);

  position:relative;
  overflow:hidden;
  width:100%;
  min-height:100vh;
  color:var(--text)!important;
  color-scheme:dark;
  background:
    radial-gradient(circle at 50% -10%,rgba(91,62,126,.66) 0,transparent 38%),
    linear-gradient(180deg,#09070e,#100b16 60%,#08060c)!important;
  font-family:Georgia,"Times New Roman",serif;
}

#ishaura-realm-archetype-codex::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.14;
  background-image:
    radial-gradient(circle,rgba(255,255,255,.62) 0 1px,transparent 1.4px),
    radial-gradient(circle,rgba(170,131,209,.45) 0 1px,transparent 1.4px);
  background-size:113px 113px,181px 181px;
  background-position:0 0,47px 31px;
}

#ishaura-realm-archetype-codex button,
#ishaura-realm-archetype-codex select,
#ishaura-realm-archetype-codex input{font:inherit}

#ishaura-realm-archetype-codex button{cursor:pointer}
#ishaura-realm-archetype-codex .hidden{display:none!important}

#ishaura-realm-archetype-codex .wrap{
  position:relative;
  z-index:2;
  width:min(1250px,100%);
  margin:auto;
  padding:34px 20px 90px;
}

#ishaura-realm-archetype-codex .eyebrow{
  text-align:center;
  color:var(--gold)!important;
  font:800 11px/1.4 system-ui,-apple-system,sans-serif;
  letter-spacing:.20em;
  text-transform:uppercase;
}

#ishaura-realm-archetype-codex h1{
  margin:8px 0;
  color:var(--text)!important;
  text-align:center;
  font-weight:400;
  font-size:clamp(42px,6vw,76px);
  line-height:1.02;
}

#ishaura-realm-archetype-codex .subtitle{
  max-width:820px;
  margin:0 auto 24px;
  color:var(--muted)!important;
  text-align:center;
  font:15px/1.75 system-ui,-apple-system,sans-serif;
}

#ishaura-realm-archetype-codex .live-line{
  width:max-content;
  max-width:100%;
  display:flex;
  align-items:center;
  gap:7px;
  margin:0 auto 24px;
  padding:7px 11px;
  border:1px solid rgba(167,211,156,.28);
  border-radius:999px;
  color:#ccefc5!important;
  background:rgba(167,211,156,.06);
  font:800 10px/1.35 system-ui,-apple-system,sans-serif;
  letter-spacing:.07em;
  text-transform:uppercase;
}
#ishaura-realm-archetype-codex .live-line::before{
  content:"";
  width:7px;height:7px;
  flex:0 0 auto;
  border-radius:50%;
  background:var(--green);
  box-shadow:0 0 12px rgba(167,211,156,.52);
}

#ishaura-realm-archetype-codex .panel{
  margin-bottom:20px;
  padding:24px;
  border:1px solid var(--line);
  border-radius:24px;
  color:var(--text)!important;
  background:linear-gradient(145deg,rgba(24,18,33,.94),rgba(15,11,22,.96))!important;
  box-shadow:var(--shadow);
}

#ishaura-realm-archetype-codex .kicker{
  color:var(--gold)!important;
  font:800 10px/1.4 system-ui,-apple-system,sans-serif;
  letter-spacing:.15em;
  text-transform:uppercase;
}

#ishaura-realm-archetype-codex h2{
  margin:7px 0;
  color:var(--text)!important;
  font-size:34px;
  line-height:1.12;
  font-weight:400;
}

#ishaura-realm-archetype-codex h3{
  margin:8px 0;
  color:var(--text)!important;
  font-size:22px;
  line-height:1.2;
  font-weight:400;
}

#ishaura-realm-archetype-codex p{line-height:1.7}

#ishaura-realm-archetype-codex .muted{
  color:var(--muted)!important;
  font:14px/1.7 system-ui,-apple-system,sans-serif;
}

#ishaura-realm-archetype-codex .legend{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
  margin-top:18px;
}

#ishaura-realm-archetype-codex .legend-item,
#ishaura-realm-archetype-codex .box{
  padding:15px;
  border:1px solid rgba(73,56,92,.92);
  border-radius:14px;
  background:rgba(16,12,23,.82)!important;
}

#ishaura-realm-archetype-codex .legend-item b,
#ishaura-realm-archetype-codex .box b{
  display:block;
  margin-bottom:6px;
  color:var(--gold)!important;
  font:800 10px/1.35 system-ui,-apple-system,sans-serif;
  letter-spacing:.10em;
  text-transform:uppercase;
}

#ishaura-realm-archetype-codex .legend-item span,
#ishaura-realm-archetype-codex .box p{
  display:block;
  margin:0;
  color:#d3c7db!important;
  font:14px/1.6 Georgia,"Times New Roman",serif;
}

#ishaura-realm-archetype-codex .lookup-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

#ishaura-realm-archetype-codex .field label{
  display:block;
  margin-bottom:8px;
  color:var(--muted)!important;
  font:800 10px/1.35 system-ui,-apple-system,sans-serif;
  letter-spacing:.13em;
  text-transform:uppercase;
}

#ishaura-realm-archetype-codex select,
#ishaura-realm-archetype-codex input{
  width:100%;
  min-height:49px;
  padding:12px 14px;
  border:1px solid #574668;
  border-radius:12px;
  outline:none;
  color:var(--text)!important;
  background:#0b0810!important;
  font-size:16px;
}

#ishaura-realm-archetype-codex select:focus,
#ishaura-realm-archetype-codex input:focus{
  border-color:var(--gold);
  box-shadow:0 0 0 3px rgba(226,197,135,.12);
}

#ishaura-realm-archetype-codex .search{margin-top:14px}

#ishaura-realm-archetype-codex .quick{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:14px;
}

#ishaura-realm-archetype-codex .quick button,
#ishaura-realm-archetype-codex .tab,
#ishaura-realm-archetype-codex .secondary-button{
  padding:10px 13px;
  border:1px solid #5a486a;
  border-radius:10px;
  color:var(--text)!important;
  background:#21172e!important;
  font:700 12px/1.35 system-ui,-apple-system,sans-serif;
}

#ishaura-realm-archetype-codex .quick button:hover,
#ishaura-realm-archetype-codex .quick button.active,
#ishaura-realm-archetype-codex .tab:hover,
#ishaura-realm-archetype-codex .tab.active{
  border-color:var(--gold);
  box-shadow:0 0 0 1px rgba(226,197,135,.28);
}

#ishaura-realm-archetype-codex .load-state{
  display:grid;
  place-items:center;
  min-height:180px;
  text-align:center;
}
#ishaura-realm-archetype-codex .load-state[hidden]{display:none!important}
#ishaura-realm-archetype-codex .load-orb{
  width:48px;height:48px;
  margin:0 auto 12px;
  border:1px solid var(--violet);
  border-radius:50%;
  background:
    radial-gradient(circle,var(--cyan) 0 3px,transparent 4px),
    repeating-conic-gradient(from 0deg,rgba(170,131,209,.72) 0 4deg,transparent 4deg 45deg);
  box-shadow:0 0 25px rgba(170,131,209,.15);
  animation:codexPulse 1.5s ease-in-out infinite;
}
@keyframes codexPulse{50%{opacity:.48;transform:scale(.96)}}

#ishaura-realm-archetype-codex .result-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px;
  flex-wrap:wrap;
}

#ishaura-realm-archetype-codex .meta{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  margin:12px 0;
}

#ishaura-realm-archetype-codex .badge{
  display:inline-block;
  padding:6px 9px;
  border:1px solid #5a486a;
  border-radius:999px;
  color:#d3c1dd!important;
  background:rgba(255,255,255,.02);
  font:700 10px/1.3 system-ui,-apple-system,sans-serif;
}

#ishaura-realm-archetype-codex .hero-copy{
  max-width:880px;
  color:#eee4f3!important;
  font-size:17px;
  line-height:1.85;
}

#ishaura-realm-archetype-codex .quote{
  margin:20px 0;
  padding:10px 0 10px 18px;
  border-left:3px solid var(--gold);
  color:#f0e3f4!important;
  font-size:18px;
  line-height:1.65;
}

#ishaura-realm-archetype-codex .columns{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

#ishaura-realm-archetype-codex .box.shadow{border-color:#76526a}
#ishaura-realm-archetype-codex .box.shadow b{color:#d9a7b1!important}
#ishaura-realm-archetype-codex .box.path{border-color:#6f8c69}
#ishaura-realm-archetype-codex .box.path b{color:#c6e4bb!important}

#ishaura-realm-archetype-codex .tabs{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:20px 0 10px;
}

#ishaura-realm-archetype-codex .mode-help{
  margin:4px 0 14px;
  padding:12px 14px;
  border-left:3px solid var(--cyan);
  border-radius:0 12px 12px 0;
  color:var(--muted)!important;
  background:rgba(134,204,228,.04);
  font:13px/1.6 system-ui,-apple-system,sans-serif;
}

#ishaura-realm-archetype-codex .mode-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
}

#ishaura-realm-archetype-codex .mode-card{
  padding:18px;
  border:1px solid #4f3d60;
  border-radius:18px;
  color:var(--text)!important;
  background:linear-gradient(145deg,rgba(23,16,33,.95),rgba(13,9,18,.97))!important;
}

#ishaura-realm-archetype-codex .mode-card.primary-mode{
  border-color:rgba(226,197,135,.55);
  box-shadow:inset 0 0 0 1px rgba(226,197,135,.08);
}

#ishaura-realm-archetype-codex .mode-card.secondary-mode{
  border-color:rgba(134,204,228,.50);
}

#ishaura-realm-archetype-codex .mode-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}

#ishaura-realm-archetype-codex .mode-letter{
  width:40px;height:40px;
  flex:0 0 auto;
  display:grid;
  place-items:center;
  border:1px solid #6c587d;
  border-radius:50%;
  color:var(--gold)!important;
  font:800 13px/1 system-ui,-apple-system,sans-serif;
}

#ishaura-realm-archetype-codex .mode-card h3{margin:0}

#ishaura-realm-archetype-codex .mode-sub{
  color:var(--soft)!important;
  font:700 11px/1.4 system-ui,-apple-system,sans-serif;
  letter-spacing:.09em;
  text-transform:uppercase;
}

#ishaura-realm-archetype-codex .mode-role{
  display:inline-block;
  margin-top:8px;
  padding:4px 7px;
  border:1px solid #5d4b6d;
  border-radius:999px;
  color:var(--gold)!important;
  font:800 9px/1.2 system-ui,-apple-system,sans-serif;
  letter-spacing:.07em;
  text-transform:uppercase;
}

#ishaura-realm-archetype-codex .mode-card .label{
  margin-top:15px;
  color:var(--soft)!important;
  font:800 9px/1.4 system-ui,-apple-system,sans-serif;
  letter-spacing:.12em;
  text-transform:uppercase;
}

#ishaura-realm-archetype-codex .mode-card p{
  margin:5px 0 0;
  color:#e3d8e8!important;
  font:14px/1.65 Georgia,"Times New Roman",serif;
}

#ishaura-realm-archetype-codex .mode-card em{color:#f0dfb8!important}
#ishaura-realm-archetype-codex .single-mode{max-width:900px}

#ishaura-realm-archetype-codex .index{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin-top:14px;
}

#ishaura-realm-archetype-codex .index button,
#ishaura-realm-archetype-codex .index .codex-item{
  padding:13px;
  border:1px solid #3d304b;
  border-radius:12px;
  color:#e9ddf2!important;
  text-align:left;
  background:#100c17!important;
}

#ishaura-realm-archetype-codex .index button:hover{border-color:var(--gold)}
#ishaura-realm-archetype-codex .index small{
  display:block;
  color:var(--soft)!important;
  font:800 10px/1.35 system-ui,-apple-system,sans-serif;
  letter-spacing:.08em;
  text-transform:uppercase;
}
#ishaura-realm-archetype-codex .index strong{
  display:block;
  margin-top:4px;
  color:var(--text)!important;
  font-size:16px;
}
#ishaura-realm-archetype-codex .codex-item p{
  margin:5px 0 0;
  color:var(--muted)!important;
  font-size:13px;
  line-height:1.55;
}

#ishaura-realm-archetype-codex .realm-grid{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:10px;
}
#ishaura-realm-archetype-codex .realm-card{
  padding:15px;
  border:1px solid #3d304b;
  border-radius:14px;
  color:var(--text)!important;
  background:#100c17!important;
  cursor:pointer;
}
#ishaura-realm-archetype-codex .realm-card:hover,
#ishaura-realm-archetype-codex .realm-card.active{
  border-color:var(--gold);
  box-shadow:0 0 0 1px rgba(226,197,135,.25);
}
#ishaura-realm-archetype-codex .realm-card .dot{font-size:22px}
#ishaura-realm-archetype-codex .realm-card h3{font-size:17px}
#ishaura-realm-archetype-codex .realm-card p{
  margin:0;
  color:var(--muted)!important;
  font:12px/1.5 system-ui,-apple-system,sans-serif;
}

/* Spiral threshold */
#ishaura-realm-archetype-codex .ial-spiral-threshold{
  margin-top:24px;
  padding:20px;
  border:1px solid rgba(170,131,209,.48);
  border-radius:20px;
  background:
    radial-gradient(circle at 92% 10%,rgba(170,131,209,.12),transparent 35%),
    linear-gradient(145deg,rgba(25,17,36,.95),rgba(11,8,17,.97))!important;
}
#ishaura-realm-archetype-codex .ial-threshold-kicker{
  color:var(--gold)!important;
  font:800 10px/1.35 system-ui,-apple-system,sans-serif;
  letter-spacing:.13em;
  text-transform:uppercase;
}
#ishaura-realm-archetype-codex .ial-threshold-content{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:18px;
  align-items:center;
  margin-top:10px;
}
#ishaura-realm-archetype-codex .ial-threshold-copy{
  display:flex;
  gap:14px;
  align-items:flex-start;
}
#ishaura-realm-archetype-codex .ial-threshold-symbol{
  width:48px;height:48px;
  flex:0 0 auto;
  display:grid;
  place-items:center;
  border:1px solid var(--violet);
  border-radius:50%;
  color:var(--gold)!important;
}
#ishaura-realm-archetype-codex .ial-threshold-copy h2{font-size:26px}
#ishaura-realm-archetype-codex .ial-threshold-copy p{
  max-width:700px;
  margin:5px 0 0;
  color:var(--muted)!important;
  font:14px/1.65 system-ui,-apple-system,sans-serif;
}
#ishaura-realm-archetype-codex .ial-spiral-button{
  min-width:260px;
  min-height:58px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:12px 15px;
  border:1px solid rgba(226,197,135,.50);
  border-radius:14px;
  color:#fff!important;
  background:linear-gradient(135deg,#5e3b8b,#2c6785)!important;
  font:inherit;
}
#ishaura-realm-archetype-codex .ial-spiral-button[disabled]{
  opacity:.55;
  cursor:not-allowed;
}
#ishaura-realm-archetype-codex .ial-button-title{
  display:block;
  font:800 12px/1.35 system-ui,-apple-system,sans-serif;
}
#ishaura-realm-archetype-codex .ial-button-subtitle{
  display:block;
  margin-top:2px;
  color:#e8dff0!important;
  font:11px/1.35 system-ui,-apple-system,sans-serif;
}
#ishaura-realm-archetype-codex .ial-button-arrow{font-size:20px}
#ishaura-realm-archetype-codex .ial-spiral-status{
  grid-column:1/-1;
  color:var(--soft)!important;
  font:11px/1.55 system-ui,-apple-system,sans-serif;
}
#ishaura-realm-archetype-codex .ial-library-navigation{
  display:flex;
  justify-content:flex-end;
  margin-top:14px;
}
#ishaura-realm-archetype-codex .ial-next-button{
  min-height:44px;
  display:flex;
  align-items:center;
  gap:9px;
  padding:10px 15px;
  border:1px solid #5a486a;
  border-radius:12px;
  color:var(--text)!important;
  background:#21172e!important;
  font:800 12px/1.35 system-ui,-apple-system,sans-serif;
}

#ishaura-realm-archetype-codex .footer-note{
  margin-top:24px;
  color:var(--soft)!important;
  text-align:center;
  font:11px/1.6 system-ui,-apple-system,sans-serif;
}

/* =========================
   WEBSITE LIGHT MODE
   ========================= */
#ishaura-realm-archetype-codex.codex-site-light{
  --bg:#f7f9fc;
  --panel:#ffffff;
  --panel2:#f5f7fb;
  --panel3:#edf1f7;
  --line:rgba(55,65,94,.16);
  --text:#111827;
  --muted:#425066;
  --soft:#657286;
  --gold:#745700;
  --violet:#60408f;
  --cyan:#0b6689;
  --green:#166534;
  --danger:#8f3148;
  --shadow:0 20px 55px rgba(48,59,91,.10);

  color:#111827!important;
  color-scheme:light;
  background:
    radial-gradient(circle at 50% -10%,rgba(96,64,143,.09) 0,transparent 38%),
    linear-gradient(180deg,#f9fbfe,#eef3f8 60%,#f7f9fc)!important;
}

#ishaura-realm-archetype-codex.codex-site-light::before{
  opacity:.06;
  background-image:
    radial-gradient(circle,rgba(15,23,42,.42) 0 1px,transparent 1.4px),
    radial-gradient(circle,rgba(96,64,143,.24) 0 1px,transparent 1.4px);
}

#ishaura-realm-archetype-codex.codex-site-light .live-line{
  color:#14532d!important;
  background:#effaf1;
  border-color:rgba(22,101,52,.20);
}

#ishaura-realm-archetype-codex.codex-site-light .panel{
  background:#fff!important;
  border-color:rgba(55,65,94,.14);
  box-shadow:var(--shadow);
}

#ishaura-realm-archetype-codex.codex-site-light h1,
#ishaura-realm-archetype-codex.codex-site-light h2,
#ishaura-realm-archetype-codex.codex-site-light h3{color:#111827!important}

#ishaura-realm-archetype-codex.codex-site-light .subtitle,
#ishaura-realm-archetype-codex.codex-site-light .muted,
#ishaura-realm-archetype-codex.codex-site-light .hero-copy,
#ishaura-realm-archetype-codex.codex-site-light .quote,
#ishaura-realm-archetype-codex.codex-site-light .ial-threshold-copy p,
#ishaura-realm-archetype-codex.codex-site-light .ial-spiral-status,
#ishaura-realm-archetype-codex.codex-site-light .footer-note{color:#425066!important}

#ishaura-realm-archetype-codex.codex-site-light .legend-item,
#ishaura-realm-archetype-codex.codex-site-light .box,
#ishaura-realm-archetype-codex.codex-site-light .mode-card,
#ishaura-realm-archetype-codex.codex-site-light .index button,
#ishaura-realm-archetype-codex.codex-site-light .index .codex-item,
#ishaura-realm-archetype-codex.codex-site-light .realm-card{
  background:#f8fafc!important;
  border-color:rgba(55,65,94,.13);
}

#ishaura-realm-archetype-codex.codex-site-light .legend-item span,
#ishaura-realm-archetype-codex.codex-site-light .box p,
#ishaura-realm-archetype-codex.codex-site-light .mode-card p,
#ishaura-realm-archetype-codex.codex-site-light .index .codex-item p,
#ishaura-realm-archetype-codex.codex-site-light .realm-card p{color:#46546a!important}

#ishaura-realm-archetype-codex.codex-site-light select,
#ishaura-realm-archetype-codex.codex-site-light input{
  color:#111827!important;
  background:#f8fafc!important;
  border-color:rgba(55,65,94,.18);
}

#ishaura-realm-archetype-codex.codex-site-light .quick button,
#ishaura-realm-archetype-codex.codex-site-light .tab,
#ishaura-realm-archetype-codex.codex-site-light .secondary-button,
#ishaura-realm-archetype-codex.codex-site-light .ial-next-button{
  color:#263246!important;
  background:#f5f7fb!important;
  border-color:rgba(55,65,94,.16);
}

#ishaura-realm-archetype-codex.codex-site-light .badge{
  color:#4c596d!important;
  background:#f8fafc;
  border-color:rgba(55,65,94,.14);
}

#ishaura-realm-archetype-codex.codex-site-light .mode-card.primary-mode{
  border-color:rgba(116,87,0,.34);
  background:#fffdf5!important;
}
#ishaura-realm-archetype-codex.codex-site-light .mode-card.secondary-mode{
  border-color:rgba(11,102,137,.28);
  background:#f6fcfe!important;
}
#ishaura-realm-archetype-codex.codex-site-light .mode-card em{color:#654c00!important}

#ishaura-realm-archetype-codex.codex-site-light .ial-spiral-threshold{
  background:linear-gradient(145deg,#fff,#f5effd)!important;
  border-color:rgba(96,64,143,.22);
}

#ishaura-realm-archetype-codex button:focus-visible,
#ishaura-realm-archetype-codex input:focus-visible,
#ishaura-realm-archetype-codex select:focus-visible{
  outline:3px solid rgba(134,204,228,.35)!important;
  outline-offset:3px!important;
}

/* Responsive */
@media(max-width:1000px){
  #ishaura-realm-archetype-codex .realm-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:900px){
  #ishaura-realm-archetype-codex .lookup-grid,
  #ishaura-realm-archetype-codex .columns,
  #ishaura-realm-archetype-codex .mode-grid{grid-template-columns:1fr}
  #ishaura-realm-archetype-codex .legend{grid-template-columns:1fr 1fr}
  #ishaura-realm-archetype-codex .index{grid-template-columns:1fr 1fr}
  #ishaura-realm-archetype-codex .ial-threshold-content{grid-template-columns:1fr}
  #ishaura-realm-archetype-codex .ial-spiral-button{width:100%;min-width:0}
}
@media(max-width:560px){
  #ishaura-realm-archetype-codex .wrap{padding:25px 14px 60px}
  #ishaura-realm-archetype-codex .panel{padding:18px}
  #ishaura-realm-archetype-codex .realm-grid,
  #ishaura-realm-archetype-codex .legend,
  #ishaura-realm-archetype-codex .index{grid-template-columns:1fr}
  #ishaura-realm-archetype-codex .ial-threshold-copy{flex-direction:column}
}
@media(prefers-reduced-motion:reduce){
  #ishaura-realm-archetype-codex *,
  #ishaura-realm-archetype-codex *::before,
  #ishaura-realm-archetype-codex *::after{
    animation-duration:.001ms!important;
    transition-duration:.001ms!important;
    scroll-behavior:auto!important;
  }
}

/* ===== RESULTS -> LIBRARY BRIDGE ===== */
#ishaura-library-bridge{
  width:min(1180px,calc(100% - 28px));
  margin:14px auto 0;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid rgba(160,130,190,.22);
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:.86rem;
  line-height:1.5;
  text-align:center;
}
#ishaura-personal-codex-guide.pcg-site-light + #ishaura-library-bridge{
  color:#334155;
  background:#ffffff;
}



/* ===== NINE FORCES / CROWN RELATIONSHIPS ===== */
#ishaura-personal-codex-guide .pcg-subsection{
  margin-top:18px;
  padding-top:18px;
  border-top:1px solid var(--line);
}
#ishaura-personal-codex-guide .pcg-subkicker{
  color:var(--gold)!important;
  font-size:.67rem;
  font-weight:900;
  letter-spacing:.11em;
  text-transform:uppercase;
}
#ishaura-personal-codex-guide .pcg-subcopy{
  margin:5px 0 12px;
  color:var(--muted)!important;
  font-size:.82rem;
  line-height:1.5;
}
#ishaura-personal-codex-guide .pcg-force-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-top:10px;
}
#ishaura-personal-codex-guide .pcg-force-grid[hidden]{display:none!important}
#ishaura-personal-codex-guide .pcg-force-card{
  min-height:170px;
  padding:15px;
  border:1px solid var(--line);
  border-top:2px solid var(--force-accent,var(--violet));
  border-radius:16px;
  background:var(--panel2)!important;
}
#ishaura-personal-codex-guide .pcg-force-card .force-name{
  color:var(--force-accent,var(--violet))!important;
  font-size:.66rem;
  font-weight:900;
  letter-spacing:.09em;
  text-transform:uppercase;
}
#ishaura-personal-codex-guide .pcg-force-card h3{
  margin:7px 0 5px;
  color:var(--text)!important;
  font-size:1.04rem;
}
#ishaura-personal-codex-guide .pcg-force-card p{
  margin:0;
  color:var(--muted)!important;
  font-size:.79rem;
  line-height:1.48;
}
#ishaura-personal-codex-guide .pcg-force-card button{
  margin-top:12px;
  border:0;
  padding:0;
  background:transparent!important;
  color:var(--gold)!important;
  font:inherit;
  font-size:.68rem;
  font-weight:900;
  cursor:pointer;
}
#ishaura-personal-codex-guide.pcg-site-light .pcg-force-card{
  background:#f8fafc!important;
  border-color:rgba(55,65,94,.13);
  border-top-color:var(--force-accent,var(--violet));
}
@media(max-width:920px){
  #ishaura-personal-codex-guide .pcg-force-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
  #ishaura-personal-codex-guide .pcg-force-grid{grid-template-columns:1fr}
}


/* ===== PUBLIC LIBRARY / MAPPING ORIENTATION ===== */
#ishaura-personal-codex-guide .pcg-public-gateway{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:14px 0 2px;
  padding:16px 18px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--panel2)!important;
}
#ishaura-personal-codex-guide .pcg-public-gateway > div:first-child{
  max-width:720px;
}
#ishaura-personal-codex-guide .pcg-public-label{
  display:block;
  margin-bottom:4px;
  color:var(--gold)!important;
  font-size:.66rem;
  font-weight:900;
  letter-spacing:.11em;
  text-transform:uppercase;
}
#ishaura-personal-codex-guide .pcg-public-gateway strong{
  display:block;
  color:var(--text)!important;
  font-size:.98rem;
}
#ishaura-personal-codex-guide .pcg-public-gateway p{
  margin:5px 0 0;
  color:var(--muted)!important;
  font-size:.8rem;
  line-height:1.5;
}
#ishaura-personal-codex-guide .pcg-public-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  flex:0 0 auto;
}
#ishaura-personal-codex-guide .pcg-public-actions a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:9px 13px;
  border-radius:12px;
  text-decoration:none!important;
  font-size:.75rem;
  font-weight:900;
}
#ishaura-personal-codex-guide .pcg-public-primary{
  background:var(--gold)!important;
  color:#15110a!important;
}
#ishaura-personal-codex-guide .pcg-public-secondary{
  border:1px solid var(--line);
  background:transparent!important;
  color:var(--text)!important;
}
#ishaura-personal-codex-guide .pcg-remap-link{
  display:block;
  width:max-content;
  max-width:100%;
  margin-top:7px;
  color:var(--gold)!important;
  font-weight:800;
  text-decoration:none!important;
}
#ishaura-personal-codex-guide .pcg-force-preview{
  margin-bottom:0!important;
}
#ishaura-personal-codex-guide .pcg-force-details{
  margin-top:9px;
  color:var(--muted)!important;
  font-size:.78rem;
  line-height:1.5;
}
#ishaura-personal-codex-guide .pcg-force-details summary{
  cursor:pointer;
  color:var(--gold)!important;
  font-weight:900;
}
#ishaura-personal-codex-guide .pcg-force-details p{
  margin:8px 0 0!important;
}
#ishaura-personal-codex-guide.pcg-site-light .pcg-public-gateway{
  background:#f8fafc!important;
  border-color:rgba(55,65,94,.13);
}
@media(max-width:760px){
  #ishaura-personal-codex-guide .pcg-public-gateway{
    align-items:flex-start;
    flex-direction:column;
  }
  #ishaura-personal-codex-guide .pcg-public-actions{
    width:100%;
  }
  #ishaura-personal-codex-guide .pcg-public-actions a{
    flex:1 1 180px;
  }
}


/* ===== DIRECT SACRED SPIRAL CHAPTER HANDOFF ===== */
#ishaura-realm-archetype-codex #openChapter{
  text-decoration:none!important;
}
#ishaura-realm-archetype-codex #chapterThreshold[hidden]{
  display:none!important;
}


/* =========================================================
   v1.6 LIGHT MODE READABILITY + FORCE BADGE POLISH
   ========================================================= */

/* Force card heading row */
#ishaura-realm-archetype-codex .force-card-head{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:8px;
}
#ishaura-realm-archetype-codex .force-card-title{
  margin:0!important;
  color:var(--text)!important;
  font-family:Georgia,"Times New Roman",serif;
  font-size:1.08rem;
  line-height:1.2;
  font-weight:700;
}
#ishaura-realm-archetype-codex .force-mark{
  width:42px;
  height:42px;
  min-width:42px;
  padding:0;
  overflow:hidden;
  white-space:nowrap;
  letter-spacing:.01em;
  font-size:11px!important;
  line-height:1!important;
  text-align:center;
}

/* Explicitly protect the lower-library headers from theme overrides. */
#ishaura-realm-archetype-codex h4,
#ishaura-realm-archetype-codex .force-card-title{
  color:var(--text)!important;
}

/* Tabs remain obvious and legible in light mode. */
#ishaura-realm-archetype-codex.codex-site-light .tabs .tab{
  color:#263246!important;
  background:#f5f7fb!important;
  border-color:rgba(55,65,94,.20)!important;
  text-shadow:none!important;
}
#ishaura-realm-archetype-codex.codex-site-light .tabs .tab:hover{
  color:#111827!important;
  background:#eef2f7!important;
  border-color:#745700!important;
}
#ishaura-realm-archetype-codex.codex-site-light .tabs .tab.active{
  color:#111827!important;
  background:#fff8df!important;
  border-color:#745700!important;
  box-shadow:0 0 0 1px rgba(116,87,0,.12)!important;
}

/* Every heading used in the lower Library stays dark in light mode. */
#ishaura-realm-archetype-codex.codex-site-light h1,
#ishaura-realm-archetype-codex.codex-site-light h2,
#ishaura-realm-archetype-codex.codex-site-light h3,
#ishaura-realm-archetype-codex.codex-site-light h4,
#ishaura-realm-archetype-codex.codex-site-light .force-card-title{
  color:#111827!important;
  text-shadow:none!important;
}

/* Small circular labels remain high-contrast in light mode. */
#ishaura-realm-archetype-codex.codex-site-light .mode-letter,
#ishaura-realm-archetype-codex.codex-site-light .force-mark{
  color:#604600!important;
  background:#fffaf0!important;
  border-color:rgba(116,87,0,.30)!important;
}

/* Supporting labels should never inherit white from the WP theme. */
#ishaura-realm-archetype-codex.codex-site-light .mode-sub,
#ishaura-realm-archetype-codex.codex-site-light .mode-card .label{
  color:#59667a!important;
}
#ishaura-realm-archetype-codex.codex-site-light .mode-role{
  color:#604600!important;
  background:#fffaf0!important;
  border-color:rgba(116,87,0,.24)!important;
}

@media(max-width:560px){
  #ishaura-realm-archetype-codex .force-card-head{
    align-items:flex-start;
  }
}
