/* Rogue Scan v4 — aligned cards, clear native marks, and network details. */

/* Room for each name, with every action resting on the same bottom line. */
.catalog-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:stretch;
  gap:20px;
}
.card.catalog-card {
  display:flex;
  flex-direction:column;
  min-width:0;
  min-height:194px;
  padding:23px;
}
.catalog-head {
  display:grid;
  grid-template-columns:52px minmax(0,1fr);
  align-items:start;
  gap:14px;
  min-width:0;
}
.catalog-copy {min-width:0;}
.catalog-card .catalog-copy h4 {
  margin:0 0 8px;
  font:700 20px/1.3 var(--brand);
  letter-spacing:-.3px;
  overflow-wrap:break-word;
  word-break:normal;
  hyphens:none;
  text-wrap:pretty;
}
.catalog-meta {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px 8px;
  color:var(--txt2);
  font:600 12px/1.5 var(--ui);
}
.catalog-meta .badge {flex:none;font-size:9px;line-height:1.4;}
.catalog-description {margin:8px 0 0;color:var(--txt2);font:600 12px/1.5 var(--ui);}
.catalog-card .catalog-icon {
  display:grid;
  place-items:center;
  width:52px;
  height:52px;
  min-width:52px;
  border:1px solid var(--line);
  border-radius:13px;
  background:var(--panel2);
  padding:8px;
  object-fit:contain;
  color:var(--cyan);
  overflow:hidden;
}
.catalog-icon svg {width:26px;height:26px;}
.catalog-icon img {display:block;width:100%;height:100%;object-fit:contain;}
.catalog-card>.cardbtns {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:9px;
  margin-top:auto;
  padding-top:24px;
}
.catalog-card .btn-sm {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:38px;
  padding:9px 15px;
  line-height:1.4;
  white-space:nowrap;
}
.mining-resources {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin-top:24px;}
.mining-resource {display:flex;flex-direction:column;min-width:0;}
.mining-resource>h2 {margin:0 0 12px;color:var(--white);font:700 20px/1.3 var(--brand);}
.mining-resource>.catalog-grid {grid-template-columns:minmax(0,1fr);flex:1;}

/* The actual blue Rogue mark has no padded coin artwork around its silhouette. */
.native-mark {
  display:inline-block;
  flex:none;
  width:24px;
  height:24px;
  padding:0;
  margin:0;
  border:0;
  border-radius:50%;
  background:transparent;
  object-fit:contain;
  vertical-align:middle;
}
.native-mark-inline,.native-mark-small {width:24px;height:24px;}
.native-mark-large {width:60px;height:60px;}
.tile .v {
  display:flex;
  align-items:baseline;
  flex-wrap:nowrap;
  gap:7px;
  min-height:35px;
}
.tile .v .native-mark {width:24px;height:24px;margin-left:1px;align-self:center;}
.tile .v small {align-self:baseline;margin-left:0;line-height:1.4;}
.tile .v small:empty {display:none;}
.content .h1:has(>.native-mark),.panel-h h3:has(>.native-mark) {
  display:flex;
  align-items:center;
  gap:11px;
}
.content .h1>.native-mark {width:29px;height:29px;}
.panel-h h3>.native-mark {width:25px;height:25px;}
.native-token-logo {width:34px!important;height:34px!important;padding:0!important;border:0!important;background:transparent!important;object-fit:contain;flex:none;}
.nav-external {margin-left:auto;font:13px var(--ui);color:#b5d3bf;}
.chip {align-items:center;min-height:30px;}
.chip .lab,.chip b {line-height:1.2;}
.ticker-coin {display:block;width:26px;height:26px;flex:0 0 26px;padding:0;}

/* Let people verify the exact network before adding it to a wallet. */
.network-details {margin:0 0 28px;overflow:hidden;}
.network-details .panel-h {align-items:center;}
.network-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:0;
  padding:8px 22px 14px;
}
.network-field {min-width:0;padding:16px 14px 16px 0;}
.network-label {
  display:block;
  margin-bottom:7px;
  color:var(--dim);
  font:800 9px/1.5 var(--ui);
  letter-spacing:.8px;
  text-transform:uppercase;
}
.network-value {
  display:block;
  margin:0;
  color:var(--txt);
  font:700 13px/1.55 var(--ui);
  overflow-wrap:anywhere;
}
.network-value a {color:var(--cyan);}
.addnet {
  display:grid;
  grid-template-columns:60px minmax(0,1fr) auto;
  align-items:center;
  gap:18px;
}
.addnet-logo {width:60px;height:60px;object-fit:contain;background:transparent;border:0;box-shadow:none;}
.addnet-txt {min-width:0;}
.addnet-txt b {display:block;font-size:25px;line-height:1.25;}
.addnet-actions {display:flex;gap:8px;flex-wrap:wrap;z-index:1;}
.burnaddr .copy {flex:none;white-space:nowrap;word-break:normal;}
.addnet-chips {align-items:center;}
.addnet-chips span {display:inline-flex;align-items:center;min-height:24px;line-height:1.2;}
.addnet-btn {white-space:nowrap;}

@media(min-width:1500px) {
  .catalog-card .catalog-copy h4 {font-size:21px;}
}
@media(max-width:1150px) {
  .catalog-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
  .card.catalog-card {padding:21px;}
  .network-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
  .addnet {grid-template-columns:56px minmax(0,1fr);}
  .addnet-logo {width:56px;height:56px;}
  .addnet-btn,.addnet-actions {grid-column:1/-1;justify-self:start;}
}
@media(max-width:640px) {
  .catalog-grid {grid-template-columns:minmax(0,1fr);gap:18px;}
  .card.catalog-card {min-height:172px;padding:21px;}
  .catalog-card .catalog-copy h4 {font-size:21px;}
  .catalog-head {gap:14px;}
  .catalog-card>.cardbtns {padding-top:21px;}
  .network-grid {padding:5px 20px 13px;}
  .network-field {padding:14px 12px 14px 0;}
  .network-value {font-size:12px;}
  .network-field-wide {grid-column:1/-1;}
  .mining-resources {grid-template-columns:minmax(0,1fr);gap:24px;}
  .addnet {padding:21px;gap:16px;}
  .addnet-txt b {font-size:22px;}
  .addnet-btn {justify-self:stretch;width:100%;}
  .addnet-actions {justify-self:stretch;}
  .addnet-actions>.cbtn {width:100%;justify-content:center;}
  .tile .v {gap:5px;}
  .tile .v .native-mark {width:22px;height:22px;}
  .tile.burntile .v {font-size:21px;}
}
@media(max-width:380px) {
  .stats {grid-template-columns:minmax(0,1fr)!important;}
  .tile.burntile .v {font-size:27px;}
}

/* V7: honest asynchronous placeholders without holding up the harbour scene. */
.home-section-loading{display:flex;align-items:center;justify-content:center;gap:12px;padding:20px;color:var(--dim);font-size:12px;text-align:center}
.home-section-loading .spinner{width:20px;height:20px;margin:0;flex:0 0 20px}
#homeDataNotice{margin:16px 0 10px}
