/* Novaris v0.33.12 - Approved image-first city command redesign. */

/* v0.33.12 - Approved city command layout: cinematic stage, primary resource dock and image-first building cards. */
.module-city .ref-workspace-grid {
  grid-template-columns: minmax(0, 1fr) clamp(300px, 20vw, 370px);
  gap: 12px;
}

.module-city .ref-city-page .ref-workspace-main {
  grid-template-rows: minmax(0, 1fr) clamp(220px, 28vh, 292px);
  gap: 10px;
}

.module-city .ref-city-hero {
  border-radius: 14px;
  border: 1px solid rgba(105,184,239,.14);
  background: #040b14;
  box-shadow: 0 18px 50px rgba(0,0,0,.2);
}

.module-city .ref-city-hero .ref-hero-gradient {
  background:
    linear-gradient(90deg, rgba(3,9,17,.92) 0%, rgba(3,9,17,.58) 34%, rgba(3,9,17,.08) 68%),
    linear-gradient(0deg, rgba(3,9,17,.72) 0%, transparent 38%);
}

.module-city .ref-hero-copy {
  max-width: 44%;
  z-index: 6;
}

.module-city .ref-city-population-summary {
  color: #91a7b9;
}

.module-city .ref-city-resource-bar {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 8;
  width: min(760px, 58%);
  min-height: 64px;
  height: auto;
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 1px solid rgba(105,184,239,.16);
  border-radius: 12px;
  background: rgba(4,13,24,.84);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 38px rgba(0,0,0,.26);
}

.module-city .ref-city-resource-primary-list {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.module-city .ref-city-resource-bar .ref-resource-chip {
  min-width: 0;
  height: auto;
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border: 0;
  border-right: 1px solid rgba(105,184,239,.11);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.module-city .ref-city-resource-primary-list .ref-resource-chip:first-child {
  border-radius: 11px 0 0 11px;
}

.module-city .ref-city-resource-bar .ref-resource-chip .nv-icon {
  width: 21px;
  height: 21px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.module-city .ref-city-resource-bar .ref-resource-chip > span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.module-city .ref-city-resource-bar .ref-resource-inline {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 7px;
}

.module-city .ref-city-resource-bar .ref-resource-chip strong {
  font-size: 18px;
  line-height: 1;
}

.module-city .ref-city-resource-bar .ref-resource-chip em {
  color: #52e1a7;
  font-size: 13px;
  line-height: 1;
}

.module-city .ref-city-resource-bar .ref-resource-chip small {
  color: #7f96aa;
  font-size: 13px;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: none;
}

.module-city .ref-city-resource-more {
  position: relative;
  flex: 0 0 118px;
  min-width: 0;
}

.module-city .ref-city-resource-more summary {
  height: 100%;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 14px;
  border-radius: 0 11px 11px 0;
  color: #d7e7f2;
  font-size: 13px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.module-city .ref-city-resource-more summary::-webkit-details-marker { display: none; }
.module-city .ref-city-resource-more summary:hover { background: rgba(94,203,255,.06); }

.module-city .ref-city-resource-more summary i {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid #8db7d2;
  border-bottom: 1.5px solid #8db7d2;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .16s ease;
}

.module-city .ref-city-resource-more[open] summary i {
  transform: rotate(225deg) translate(-1px, -1px);
}

.module-city .ref-city-resource-secondary-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(620px, 72vw);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 9px;
  border: 1px solid rgba(105,184,239,.2);
  border-radius: 12px;
  background: rgba(5,14,25,.97);
  box-shadow: 0 24px 60px rgba(0,0,0,.42);
}

.module-city .ref-city-resource-secondary-list .ref-resource-chip {
  min-height: 64px;
  border: 1px solid rgba(105,184,239,.1);
  border-radius: 9px;
  background: rgba(12,27,44,.62);
}

.module-city .ref-city-resource-secondary-list .ref-resource-capacity {
  margin-top: 1px;
  color: #667f92;
  font-size: 13px;
}

.module-city .ref-city-resource-bar .ref-resource-chip.near-capacity,
.module-city .ref-city-resource-bar .ref-resource-chip.full {
  background: rgba(244,189,88,.05);
}

.module-city .ref-city-resource-bar .ref-resource-chip.full {
  background: rgba(255,112,123,.06);
}

.module-city .ref-building-rail-compact {
  min-height: 0;
  height: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.module-city .ref-building-window,
.module-city .ref-city-page .ref-selection-grid {
  height: 100%;
}

.module-city .ref-city-page .ref-selection-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  overflow: hidden;
}

.module-city .ref-building-selector {
  position: relative;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(105,184,239,.18);
  border-radius: 12px;
  background: #07121f;
  box-shadow: 0 14px 34px rgba(0,0,0,.18);
  transform: none;
}

.module-city .ref-building-selector:hover:not(.disabled) {
  transform: translateY(-2px);
  border-color: rgba(94,203,255,.45);
  background: #091827;
}

.module-city .ref-building-selector.active {
  border-color: #4acfff;
  background: #071521;
  box-shadow: inset 0 0 0 1px rgba(74,207,255,.16), 0 0 22px rgba(33,164,216,.12);
}

.module-city .ref-building-selector.locked {
  border-color: rgba(244,189,88,.25);
  background: #0d141c;
}

.module-city .ref-building-selector > div {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: 0;
  background: #07111d;
}

.module-city .ref-building-selector > div picture,
.module-city .ref-building-selector > div img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform .25s ease;
}

.module-city .ref-building-selector:hover > div img {
  transform: scale(1.025);
}

.module-city .ref-building-selector > span {
  position: relative;
  z-index: 2;
  min-width: 0;
  padding: 12px 15px 14px;
  background: linear-gradient(180deg, rgba(6,16,28,.94), rgba(5,13,23,.99));
}

.module-city .ref-building-selector strong {
  padding-right: 20px;
  font-size: 19px;
  line-height: 1.15;
}

.module-city .ref-building-selector small {
  margin-top: 5px;
  font-size: 13px;
}

.module-city .ref-building-selector em {
  margin-top: 7px;
  font-size: 13px;
}

.module-city .ref-building-selector > span > i {
  position: absolute;
  right: 14px;
  bottom: 15px;
  color: #d8e9f5;
  font-size: 23px;
  font-style: normal;
  line-height: 1;
}

.module-city .ref-building-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  padding: 5px 10px;
  border: 1px solid rgba(74,207,255,.48);
  border-radius: 7px;
  background: rgba(4,20,32,.82);
  color: #71ddff;
  font-size: 13px;
  letter-spacing: .08em;
}

.module-city .ref-building-inspector-compact {
  min-height: 0;
  height: 100%;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(105,184,239,.16);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(7,18,31,.94), rgba(4,12,22,.98));
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
}

.module-city .ref-city-compact-inspector {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 20px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(94,203,255,.24) transparent;
}

.module-city .ref-city-compact-inspector header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.module-city .ref-city-compact-inspector header > b {
  margin-top: 15px;
  padding: 5px 10px;
  border: 1px solid rgba(94,203,255,.2);
  border-radius: 999px;
  color: #8fbed8;
  font-size: 13px;
  font-weight: 600;
}

.module-city .ref-city-compact-inspector h2 {
  margin: 14px 0 2px;
  font-size: clamp(26px, 2vw, 35px);
  line-height: 1.05;
}

.module-city .ref-city-compact-inspector header small {
  color: #8ca0b2;
  font-size: 13px;
}

.module-city .ref-city-compact-progress {
  height: 5px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(105,184,239,.13);
}

.module-city .ref-city-compact-progress i {
  display: block;
  min-width: 2px;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4ccfff, #75e0ff);
}

.module-city .ref-city-compact-inspector > .ref-level-label {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 10px;
  margin-top: 9px;
  color: #f3bf5f;
  font-size: 13px;
}

.module-city .ref-city-compact-inspector > .ref-level-label em {
  color: #c49742;
  font-style: normal;
  font-weight: 600;
}

.module-city .ref-city-compact-inspector > p {
  margin: 16px 0 0;
  color: #9cafbd;
  font-size: 13px;
  line-height: 1.5;
}

.module-city .ref-city-compact-status,
.module-city .ref-city-compact-time {
  padding-top: 17px;
  margin-top: 17px;
  border-top: 1px solid rgba(105,184,239,.12);
}

.module-city .ref-city-compact-status span,
.module-city .ref-city-compact-time span {
  display: block;
  color: #79a9c4;
  font-size: 13px;
  letter-spacing: .1em;
}

.module-city .ref-city-compact-status strong,
.module-city .ref-city-compact-time strong,
.module-city .ref-city-compact-status small {
  display: block;
}

.module-city .ref-city-compact-status strong {
  margin-top: 7px;
  font-size: 16px;
}

.module-city .ref-city-compact-status small {
  margin-top: 8px;
  color: #91a4b5;
  font-size: 13px;
  line-height: 1.45;
}

.module-city .ref-city-compact-time strong {
  margin-top: 7px;
  font-size: 18px;
}

.module-city .ref-city-inspector-details {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: auto;
  padding: 10px 14px;
  border: 1px solid rgba(105,184,239,.24);
  border-radius: 9px;
  background: rgba(8,22,36,.72);
  color: #d9e8f2;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.module-city .ref-city-inspector-details:hover {
  border-color: rgba(94,203,255,.52);
  background: rgba(13,39,60,.78);
}

.module-city .ref-city-inspector-details .nv-icon {
  width: 17px;
  height: 17px;
}

/* v0.33.13 - Sharp cinematic hero and fully readable primary resource values. */
.module-city .ref-city-hero .ref-hero-image img {
  image-rendering: auto;
  filter: saturate(1.07) contrast(1.07) brightness(1.035);
  object-position: center 52%;
}

.module-city .ref-city-hero .ref-hero-gradient {
  background:
    linear-gradient(90deg, rgba(3,9,17,.82) 0%, rgba(3,9,17,.46) 27%, rgba(3,9,17,.11) 48%, transparent 64%),
    linear-gradient(0deg, rgba(3,9,17,.34) 0%, transparent 30%);
}

.module-city .ref-city-resource-bar {
  width: min(800px, 64%);
}

.module-city .ref-city-resource-primary-list {
  grid-template-columns: repeat(4, minmax(145px, 1fr));
}

.module-city .ref-city-resource-bar .ref-resource-chip {
  gap: 7px;
  padding-inline: 10px;
}

.module-city .ref-city-resource-bar .ref-resource-chip > span,
.module-city .ref-city-resource-bar .ref-resource-inline,
.module-city .ref-city-resource-bar .ref-resource-chip strong,
.module-city .ref-city-resource-bar .ref-resource-chip em {
  overflow: visible;
  text-overflow: clip;
}

.module-city .ref-city-resource-bar .ref-resource-inline {
  display: grid;
  grid-template-columns: max-content max-content;
  justify-content: start;
  column-gap: 6px;
  white-space: nowrap;
}

.module-city .ref-city-resource-bar .ref-resource-chip strong,
.module-city .ref-city-resource-bar .ref-resource-chip em {
  min-width: max-content;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.module-city .ref-city-resource-more {
  flex-basis: 104px;
}

