:root {
  color-scheme: dark;
  --bg: #0c131a;
  --panel: #18232f;
  --panel2: #1e2d3a;
  --border: #33485a;
  --text: #eaf0f2;
  --muted: #9eafbd;
  --gold: #d5ac76;
  --teal: #79bbae;
  --danger: #eea2a3;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  background: radial-gradient(circle at 72% 0%,#20313c 0%,transparent 43%),var(--bg);
  color: var(--text);
  font: 14px/1.55 system-ui,-apple-system,'Segoe UI',sans-serif;
}

button,input,select {
  font: inherit;
}

button {
  cursor: pointer;
  color: var(--text);
  background: #2a3d4c;
  border: 1px solid #4b6272;
  border-radius: 9px;
  padding: 9px 13px;
}

button:hover:not(:disabled) {
  border-color: var(--gold);
}

button:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.primary {
  background: #9a7447;
  border-color: #c8a26b;
  color: #fff;
}

.ghost {
  background: transparent;
  border-color: transparent;
}

.outline {
  background: transparent;
}

input,select {
  width: 100%;
  background: #101b25;
  color: var(--text);
  border: 1px solid #4a5e6d;
  border-radius: 9px;
  padding: 10px 11px;
  outline: none;
}

input:focus,select:focus {
  border-color: var(--gold);
}

label {
  font-size: 12px;
  display: block;
  color: var(--muted);
  margin: 0 0 5px;
}

h1,h2,h3,p {
  margin: 0 0 12px;
}

h1 {
  font-family: Georgia,serif;
  font-weight: 400;
  font-size: clamp(26px,4vw,38px);
  color: #f3d5a4;
}

h2 {
  font-size: 21px;
}

h3 {
  font-size: 15px;
}

small,.muted {
  color: var(--muted);
}

.tiny {
  font-size: 11px;
}

.brand {
  font-family: Georgia,serif;
  letter-spacing: .025em;
  color: #f4d4a2;
  font-size: 24px;
}

.brandmark {
  width: 39px;
  height: 39px;
  border: 1px solid #947953;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 23px;
}

.row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.between {
  justify-content: space-between;
}

.col {
  display: grid;
  gap: 13px;
}

.field {
  margin-bottom: 14px;
}

.panel {
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 22px;
  background: rgba(25,37,48,.96);
}

.soft {
  background: var(--panel2);
}

.chip {
  display: inline-block;
  border: 1px solid #65737a;
  background: #283c47;
  border-radius: 30px;
  padding: 3px 10px;
  font-size: 11px;
  color: #e6e6dd;
}

.chip.gold {
  border-color: #9c8258;
  background: #4b3b29;
}

.chip.green {
  border-color: #487e74;
  background: #21483e;
}

.statgrid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 14px;
}

.stat {
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #1c2a35;
  padding: 19px;
}

.stat strong {
  display: block;
  font-size: 29px;
  margin: 5px 0;
  font-weight: 650;
  color: #f5dfb6;
}

.stat small {
  display: block;
}

.layout {
  display: grid;
  grid-template-columns: 246px minmax(0,1fr);
  min-height: 100vh;
}

.sidebar {
  background: #121d26;
  border-right: 1px solid var(--border);
  padding: 23px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}

.sidebarhead {
  padding: 0 9px 19px;
  border-bottom: 1px solid #304351;
}

.nav {
  display: grid;
  gap: 6px;
  margin-top: 22px;
}

.nav button {
  text-align: left;
  background: transparent;
  border-color: transparent;
  padding: 12px 13px;
}

.nav button.active {
  background: #35413b;
  border-color: #9e8657;
  color: #ffdfaa;
}

.sidestatus {
  margin-top: 25px;
  padding: 14px;
  background: #1e2d38;
  border: 1px solid #354b58;
  border-radius: 11px;
}

.main {
  min-width: 0;
}

.top {
  background: #131e28e8;
  border-bottom: 1px solid var(--border);
  padding: 18px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.content {
  max-width: 1320px;
  margin: auto;
  padding: 30px 28px 70px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: 11px;
  color: #d0aa77;
  margin-bottom: 7px;
}

.sectionhead {
  margin-bottom: 22px;
}

.grid2 {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 16px;
}

.rolecard {
  padding: 20px;
  border: 1px solid #455969;
  border-radius: 13px;
  background: #20303b;
}

.roadmap {
  display: grid;
  gap: 10px;
}

.roaditem {
  display: flex;
  gap: 13px;
  align-items: center;
  border: 1px solid #354755;
  padding: 12px;
  border-radius: 10px;
}

.circle {
  width: 31px;
  height: 31px;
  flex: none;
  border-radius: 50%;
  background: #33483f;
  color: #e6d9aa;
  display: grid;
  place-items: center;
}

.loginwrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(360px,.85fr);
}

.loginhero {
  padding: clamp(30px,7vw,110px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: radial-gradient(circle at 48% 46%,#354039 0%,#172631 45%,#0e1821 75%);
}

.seal {
  font-family: Georgia,serif;
  font-size: 82px;
  color: #d1ac79;
  border: 1px solid #877757;
  border-radius: 50%;
  width: 170px;
  height: 170px;
  display: grid;
  place-items: center;
  margin-bottom: 30px;
  box-shadow: 0 0 0 14px #b49a5220,0 0 0 29px #b49a5210;
}

.loginright {
  padding: 30px clamp(25px,6vw,100px);
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.loginpanel {
  max-width: 440px;
  width: 100%;
  margin: auto;
}

.loginpanel h2 {
  font-family: Georgia,serif;
  font-size: 30px;
  color: #f0dab5;
}

.hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

.alert {
  border-left: 3px solid var(--gold);
  padding: 10px 13px;
  background: #3a342b;
  margin: 12px 0;
  border-radius: 0 8px 8px 0;
}

.alert.error {
  border-left-color: var(--danger);
  background: #42292c;
  color: #ffd0d0;
}

.demochoices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.demochoices button {
  font-size: 12px;
}

.actionbar {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.tablewrap {
  overflow-x: auto;
}

.users {
  width: 100%;
  border-collapse: collapse;
}

.users th,.users td {
  padding: 12px 11px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.users th {
  color: #b3c2cd;
  font-weight: 500;
  font-size: 12px;
}

.users select {
  min-width: 170px;
}

.users .smallbutton {
  font-size: 12px;
  padding: 6px 8px;
}

.empty {
  border: 1px dashed #597081;
  border-radius: 12px;
  text-align: center;
  color: var(--muted);
  padding: 34px;
}

.overlay {
  position: fixed;
  inset: 0;
  background: #03080bd6;
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 10;
}

.modal {
  background: #192632;
  border: 1px solid #69808a;
  border-radius: 14px;
  width: min(560px,100%);
  padding: 25px;
  max-height: 90vh;
  overflow: auto;
}

.footer {
  color: var(--muted);
  font-size: 12px;
  margin-top: 35px;
}

.boot {
  padding: 50px;
  font-family: Georgia,serif;
  color: var(--gold);
  font-size: 26px;
}

@media(max-width:850px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    height: auto;
    position: static;
  }
  .nav {
    display: flex;
    flex-wrap: wrap;
  }
  .nav button {
    padding: 7px 10px;
  }
  .sidestatus {
    display: none;
  }
  .loginwrap {
    grid-template-columns: 1fr;
  }
  .loginhero {
    padding: 32px;
  }
  .seal {
    width: 80px;
    height: 80px;
    font-size: 36px;
    margin-bottom: 20px;
  }
  .loginright {
    padding: 25px;
  }
  .statgrid {
    grid-template-columns: 1fr;
  }
  .grid2 {
    grid-template-columns: 1fr;
  }
  .content {
    padding: 20px;
  }
  .top {
    padding: 15px;
  }
}

@media(max-width:450px) {
  .top .row {
    width: 100%;
  }
  .loginpanel h2 {
    font-size: 25px;
  }
}

/* AJ-LOGO ANIMADO · recuperado del Atlas 3.0.2.2 · marca reutilizable */

.ajIntroScene {
  position: relative;
  width: clamp(160px, min(27vw, 31vh), 280px);
  aspect-ratio: 1/1;
  flex: none;
  perspective: 850px;
  perspective-origin: center;
  transform-style: preserve-3d;
  opacity: 0;
  animation: ajIntroSceneEnter 1s ease forwards;
  margin: 0 auto 28px;
}

.ajIntroScene::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle,rgba(210,170,100,.13),transparent 72%);
  filter: blur(22px);
  animation: ajIntroAura 2s ease-in-out infinite;
}

.ajIntroRing {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  backface-visibility: visible;
  pointer-events: none;
}

.ajIntroRing svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 0 5px rgba(220,180,105,.45));
}

.ajIntroOuter {
  animation: ajIntroSpinClockwise 12s linear infinite;
}

.ajIntroRunes {
  animation: ajIntroSpinCounter 8s linear infinite;
}

.ajIntroOrbitA {
  animation: ajIntroOrbitOne 5s linear infinite;
}

.ajIntroOrbitB {
  animation: ajIntroOrbitTwo 6s linear infinite;
}

.ajIntroInner {
  animation: ajIntroSpinInner 4s linear infinite;
}

.ajIntroCore {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ajIntroCore svg {
  width: 22%;
  height: 22%;
  animation: ajIntroCorePulse 1.8s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(230,192,120,.7));
}

@keyframes ajIntroSceneEnter {
  from {
    opacity: 0;
    transform: scale(.65);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes ajIntroSpinClockwise {
  from {
    transform: rotateZ(0deg);
  }
  to {
    transform: rotateZ(360deg);
  }
}

@keyframes ajIntroSpinCounter {
  from {
    transform: rotateZ(360deg);
  }
  to {
    transform: rotateZ(0deg);
  }
}

@keyframes ajIntroOrbitOne {
  from {
    transform: rotateZ(30deg) rotateX(68deg) rotateY(0deg);
  }
  to {
    transform: rotateZ(30deg) rotateX(68deg) rotateY(360deg);
  }
}

@keyframes ajIntroOrbitTwo {
  from {
    transform: rotateZ(-40deg) rotateY(65deg) rotateX(360deg);
  }
  to {
    transform: rotateZ(-40deg) rotateY(65deg) rotateX(0deg);
  }
}

@keyframes ajIntroSpinInner {
  from {
    transform: rotateZ(0deg) rotateX(20deg);
  }
  to {
    transform: rotateZ(-360deg) rotateX(20deg);
  }
}

@keyframes ajIntroCorePulse {
  0%,100% {
    opacity: .65;
    transform: scale(.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

@keyframes ajIntroAura {
  0%,100% {
    opacity: .4;
    transform: scale(.9);
  }
  50% {
    opacity: .9;
    transform: scale(1.15);
  }
}

/* Centrado real: ambos ejes del bloque izquierdo, estable en escritorio y móvil. */

.loginhero {
  align-items: center;
  text-align: center;
  min-width: 0;
}

.loginhero>.eyebrow,.loginhero>h1,.loginhero>p {
  width: min(100%,540px);
  margin-left: auto;
  margin-right: auto;
}

.loginhero>h1 {
  line-height: 1.18;
}

@media(max-width:850px) {
  .ajIntroScene {
    width: clamp(120px, 30vw, 185px);
    margin-bottom: 24px;
  }
}

@media(max-width:450px) {
  .ajIntroScene {
    width: 140px;
    margin-bottom: 18px;
  }
}

@media(prefers-reduced-motion:reduce) {
  .ajIntroScene,.ajIntroScene::before,.ajIntroRing,.ajIntroCore svg {
    animation: none!important;
  }
  .ajIntroScene {
    opacity: 1;
    transform: none;
  }
}

/* Social networks — last section in the dashboard */

.social-panel {
  margin-top: 22px;
  padding: 20px;
  background: #1d2a36;
}

.social-heading {
  margin-bottom: 14px;
  align-items: flex-start;
}

.social-heading h3 {
  font-size: 19px;
  margin-bottom: 3px;
}

.social-heading p {
  margin: 0;
  font-size: 12px;
}

.social-edit {
  font-size: 12px;
  white-space: nowrap;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(8,minmax(0,1fr));
  gap: 10px;
}

.social-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px dashed #455765;
  border-radius: 10px;
  background: #15232e;
  color: #e9e1ce;
  text-decoration: none;
  font-weight: 550;
  font-size: 13px;
  min-width: 0;
}

.social-item .social-icon {
  font-size: 21px;
  color: #d0a86e;
  line-height: 1;
  min-width: 23px;
  text-align: center;
}

.social-item.is-empty {
  opacity: .43;
  cursor: default;
}

.social-item:not(.is-empty):hover,.social-item:not(.is-empty):focus-visible {
  border-style: solid;
  border-color: #d0a86e;
  background: #283b48;
  outline: none;
}

.social-footnote {
  margin: 13px 0 0;
  font-size: 11px;
}

@media(max-width:1400px) {
  .social-grid {
    grid-template-columns: repeat(5,minmax(0,1fr));
  }
}

@media(max-width:900px) {
  .social-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
}

@media(max-width:560px) {
  .social-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .social-panel {
    padding: 16px;
  }
}

/* Contributions — editable only by full admin */

.donation-section {
  margin-top: 24px;
  border-top: 1px solid #405361;
  padding-top: 18px;
}

.donation-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,250px));
  gap: 13px;
  margin-top: 12px;
}

.donation-card {
  border: 1px dashed #455765;
  border-radius: 10px;
  background: #15232e;
  min-height: 160px;
  padding: 15px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.donation-card.is-empty {
  opacity: .45;
}

.donation-image {
  width: min(100%,160px);
  height: 160px;
  object-fit: contain;
  background: white;
  padding: 8px;
  border-radius: 8px;
}

.donation-placeholder {
  font-size: 65px;
  line-height: 1.6;
  color: #d0a86e;
}

.donation-link {
  color: #f1d6a7;
  text-decoration: underline;
  overflow-wrap: anywhere;
}

.donation-fieldset {
  border: 1px solid #455765;
  border-radius: 10px;
  margin: 12px 0;
  padding: 12px;
}

.donation-fieldset legend {
  padding: 0 6px;
  color: #f1d6a7;
}

@media(max-width:560px) {
  .donation-grid {
    grid-template-columns: 1fr 1fr;
  }
  .donation-image {
    height: 120px;
  }
}

/* Compact mobile shell; desktop navigation remains unchanged. */
.mobile-menu-toggle { display:none; }
@media (max-width:850px) {
  .layout { grid-template-columns:minmax(0,1fr); }
  .sidebar { padding:10px 14px; overflow:visible; }
  .sidebarhead { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; padding:0; border:0; }
  .sidebarhead>.row { flex:1; min-width:0; }
  .sidebarhead .brand { overflow-wrap:anywhere; }
  .sidebarhead>small { display:none; }
  .mobile-menu-toggle { display:inline-flex; align-items:center; min-height:44px; flex:none; }
  .sidebar>.nav { display:none; margin-top:10px; }
  .sidebar.mobile-menu-open>.nav { display:grid; }
  .sidebar .nav button { min-height:44px; padding:9px 12px; }
  .top { padding:12px; gap:9px; }
  .top .form-actions { gap:6px; }
  .content { padding:14px 12px 35px; }
  .content .panel { padding:14px; min-width:0; }
  .content button { overflow-wrap:anywhere; }
  .content input,.content select,.content textarea,.modal input,.modal select,.modal textarea,.uv-dialog input,.uv-dialog select,.uv-dialog textarea { font-size:16px; max-width:100%; }
  .overlay { padding:8px; }
  .modal { max-height:90dvh; padding:14px; }
}
@media(max-width:850px) {
  .sidebarhead>.row { flex-wrap:nowrap; gap:7px; }
  .sidebarhead .brandmark { flex:none; width:30px; height:30px; font-size:19px; }
  .sidebarhead .brand { font-size:17px; line-height:1.25; }
  .top>.form-actions { width:auto; }
  .top .form-actions>.chip { display:none; }
  .top .eyebrow { display:none; }
}

/* Publicación selectiva */
.publication-text{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;margin:12px 0;max-height:420px;overflow:auto}
.publication-image{display:block;width:auto;max-width:100%;max-height:300px;object-fit:contain;margin:10px 0}
/* Public reading shell, no private scripts or data. */
[hidden]{display:none!important}.nav button[aria-current=page]{background:#35413b;border-color:#9e8657;color:#ffdfaa}.sidebarhead .row{flex-wrap:nowrap}.sidebarhead .eyebrow{margin-top:14px}.hero{position:relative;overflow:hidden;min-height:290px;display:flex;align-items:center;background:radial-gradient(ellipse at 85% 50%,#31463f 0%,transparent 52%),linear-gradient(120deg,#1a2b38,#15212b);border-color:#746248;padding:clamp(22px,5vw,52px)}.hero-copy{position:relative;z-index:1;max-width:520px}.hero-copy h1{font:clamp(42px,6vw,72px)/1.12 Georgia,serif;color:#f4d4a2;margin:12px 0}.hero-copy p:not(.eyebrow){color:#c6d1d7;max-width:390px;margin:0 0 22px}.seal-art{position:absolute;right:3%;width:clamp(160px,34vw,340px);max-height:95%;color:var(--gold);opacity:.32;pointer-events:none}.sectionhead{margin:28px 0 18px}.entry-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:16px}.category-card{text-align:left;display:flex;gap:15px;align-items:flex-start;padding:20px;background:#1c2a35;border:1px solid var(--border);border-radius:13px;min-height:110px}.category-card strong{display:block;font-size:17px;color:#f4d4a2;margin-bottom:4px}.category-card small{display:block;color:var(--muted)}.category-symbol{font:29px Georgia,serif;color:var(--gold);flex:none;min-width:32px;text-align:center}.search-row{display:flex;gap:8px;margin:6px 0 16px}.search-row input{min-width:0}.entry-card{padding:0;text-align:left;overflow:hidden;background:#1c2a35;border-color:var(--border);display:flex;flex-direction:column;width:100%;min-height:218px}.entry-cover{width:100%;aspect-ratio:16/9;object-fit:cover;background:#121d26;display:block}.entry-cover.placeholder{display:grid;place-items:center;color:var(--gold);font:48px Georgia,serif;background:radial-gradient(circle,#35413b,#15232e)}.entry-copy{padding:16px;display:grid;gap:8px;overflow-wrap:anywhere;width:100%}.entry-copy strong{font:21px/1.2 Georgia,serif;color:#f4d4a2}.entry-copy p{color:#bdcbd5;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:0}.entry-copy .open{color:var(--gold);font-size:12px}.empty{padding:28px;border:1px dashed var(--border);border-radius:13px;color:var(--muted);text-align:center;grid-column:1/-1}.entry-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;font-size:15px}.detail-head{margin:18px 0;overflow-wrap:anywhere}.gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:14px;margin:15px 0}.gallery img{max-width:100%;width:100%;height:auto;max-height:650px;object-fit:contain;display:block;background:#101b25;border:1px solid var(--border);border-radius:10px}.footer{border-top:1px solid var(--border);padding-top:18px}#more{margin-top:20px}#status{color:var(--muted)}button:focus-visible,input:focus-visible,a:focus-visible{outline:2px solid var(--gold);outline-offset:3px}@media(max-width:850px){.sidebar>.nav{display:flex;flex-wrap:wrap;margin-top:10px}.sidebarhead .row{flex:initial}.hero{min-height:240px}.seal-art{opacity:.16;right:-5%}.content{padding:20px 16px 40px}}@media(max-width:430px){.search-row{flex-wrap:wrap}.search-row input{flex:1 1 100%}.entry-grid{grid-template-columns:1fr}.hero-copy h1{font-size:42px}}
.entry-copy>.muted{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.entry-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr))}.sidebar .brandmark{flex:none}.hero-copy{min-width:0}
/* Read-only profiles and cartography: inspired by private cast and universe panels. */
.entry-card.kind-characters .entry-cover,.entry-card.kind-factions .entry-cover{aspect-ratio:3/4;object-fit:contain;max-height:340px;background:#111b24}.entry-card.kind-places .entry-cover{aspect-ratio:16/10;object-fit:contain;background:#111b24}.entry-grid[data-kind="characters"],.entry-grid[data-kind="factions"]{grid-template-columns:repeat(auto-fill,minmax(min(100%,200px),1fr))}.archive-profile,.archive-map-layout{display:grid;gap:18px;align-items:start;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr)}.archive-map-layout{grid-template-columns:minmax(0,1.65fr) minmax(0,1fr)}.archive-profile>section,.archive-map-layout>section{min-width:0;border-color:#8b7450;background:linear-gradient(155deg,#22313c,#15212b)}.archive-portrait{text-align:center;position:relative}.archive-main-art,.archive-map-art{display:block;width:100%;min-width:0}.archive-main-art img{display:block;width:100%;max-height:76vh;object-fit:contain;background:#101923;border:1px solid #8b7450;border-radius:8px}.archive-ornament{display:block;color:#d9b97c;font-size:20px;margin-bottom:12px}.archive-portrait-empty{display:grid;place-items:center;min-height:240px;color:var(--gold);font-size:70px;background:#101923;border:1px solid #8b7450;border-radius:8px}.archive-info h2,.archive-map-panel h2,.archive-section h3{font-family:Georgia,serif;color:#e2c798;font-weight:400}.archive-facts{display:grid;grid-template-columns:minmax(8ch,35%) minmax(0,1fr);margin:0 0 18px;gap:0 12px}.archive-facts dt,.archive-facts dd{padding:9px 0;border-bottom:1px solid #b79a624d;overflow-wrap:anywhere}.archive-facts dt{color:#d9b97c}.archive-facts dd{margin:0;white-space:pre-wrap}.archive-section{border-top:1px solid #b79a624d;padding-top:15px;margin-top:15px}.archive-map-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}.archive-map-tabs button[aria-pressed="true"]{color:#ffdfaa;border-color:#d5ac76;background:#4b3b29}.archive-map-stage{background:#101923;border:1px solid #405363;border-radius:10px;min-height:200px;display:grid;place-items:center;overflow:hidden}.archive-map-art img{display:block;width:100%;max-height:76vh;object-fit:contain}.archive-map-panel>.muted{margin-top:12px;margin-bottom:0}.archive-figure{margin:0;min-width:0}.archive-figure figcaption{padding:8px 0;color:var(--muted);overflow-wrap:anywhere}.archive-figure .gallery img{object-fit:contain}@media(max-width:950px){.archive-profile,.archive-map-layout{grid-template-columns:minmax(0,1fr)}.archive-main-art img{max-height:65vh}}@media(max-width:430px){.entry-grid[data-kind="characters"],.entry-grid[data-kind="factions"]{grid-template-columns:1fr}.archive-profile .panel,.archive-map-layout .panel{padding:14px}.archive-facts{grid-template-columns:minmax(7ch,35%) minmax(0,1fr)}}

/* Public read-only interactive cartography: only authorized published markers. */
.public-interactive-map{position:relative;min-height:clamp(240px,43vw,560px);max-height:70vh;display:block;overflow:auto;overscroll-behavior:contain}
.public-map-surface{position:relative;width:100%;isolation:isolate}
.public-map-surface>.archive-map-art{display:block;width:100%}
.public-map-surface>.archive-map-art img{display:block;width:100%;height:auto;max-height:none;object-fit:contain}
.public-map-fallback{min-height:clamp(240px,43vw,560px);display:grid;place-items:center;padding:24px;text-align:center;color:#bba77f;background:radial-gradient(ellipse at center,#344b46,#1a2e35 68%,#11202b)}
.public-map-marker{position:absolute;z-index:2;transform:translate(-50%,-50%);max-width:min(180px,45%);border:1px solid #e5c78d!important;border-radius:8px;background:#152332ed!important;color:#ffe3b7!important;padding:5px 9px!important;font-size:12px;line-height:1.3;box-shadow:0 2px 12px #050b11b8;white-space:normal;text-align:center}
.public-map-marker:hover,.public-map-marker:focus-visible{background:#4e4031!important;z-index:3}
.public-parent-link{display:block;margin:0 0 14px}
@media(max-width:600px){.public-map-marker{font-size:10px;padding:4px 6px!important;max-width:42%}}

.public-map-zoom{display:flex;gap:7px;justify-content:flex-end;margin:0 0 8px}.public-map-zoom button{min-width:44px;min-height:38px}

/* Visual hierarchy: same visual hierarchy and portraits for all authorized categories. */
.kind-items .archive-portrait,.kind-items .archive-info{border-color:#b79a62}
.kind-factions .archive-main-art img,.kind-polities .archive-main-art img{max-height:58vh}
.kind-items .archive-main-art img{max-height:54vh}
.kind-factions .archive-profile,.kind-polities .archive-profile,.kind-items .archive-profile{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr)}
.archive-facts,.archive-section,.entry-copy{overflow-wrap:anywhere}
@media(max-width:950px){.kind-factions .archive-profile,.kind-polities .archive-profile,.kind-items .archive-profile{grid-template-columns:1fr}}


/* CATALOGO_PUBLICO_MINIATURAS_UNIFICADAS
   Ilustraciones completas con marco interior uniforme.
   Exclusivo de tarjetas del catálogo público.
*/

/* Todas las imágenes y marcadores comparten el mismo marco. */
body .entry-grid .entry-card > .entry-cover {
    box-sizing: border-box;
    display: block;
    flex: 0 0 auto;
    width: calc(100% - 20px);
    height: auto;
    aspect-ratio: 4 / 3;
    max-height: none;
    margin: 10px 10px 0;
    padding: 10px;
    border: 1px solid #405363;
    border-radius: 8px;
    background: #101e2a;
    object-fit: contain;
    object-position: center;
}

/* Fichas sin ilustración: iconos centrados. */
body .entry-grid .entry-card > .entry-cover.placeholder {
    display: grid;
    place-items: center;
    font: 48px Georgia, serif;
    color: #d5ad73;
    background: linear-gradient(145deg, #192e3a, #0e1b27);
}

/* Área textual coherente en todas las tarjetas. */
body .entry-grid .entry-card > .entry-copy {
    box-sizing: border-box;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    min-width: 0;
    width: 100%;
}

body .entry-grid .entry-card > .entry-copy .open {
    margin-top: auto;
}

/* En móviles se conserva el mismo formato. */
@media (max-width: 480px) {
    body .entry-grid .entry-card > .entry-cover {
        width: calc(100% - 16px);
        margin: 8px 8px 0;
        padding: 8px;
    }
}
